From 3d9770877264e45c6065f2be7cbd15c2e7ff5b37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 06:21:45 +0000 Subject: [PATCH 1/3] Update rubocop-minitest requirement from ~> 0.33.0 to ~> 0.34.2 Updates the requirements on [rubocop-minitest](https://github.com/rubocop/rubocop-minitest) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop-minitest/releases) - [Changelog](https://github.com/rubocop/rubocop-minitest/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-minitest/compare/v0.33.0...v0.34.2) --- updated-dependencies: - dependency-name: rubocop-minitest dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- live_ast.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live_ast.gemspec b/live_ast.gemspec index cbf58fb..9a05a35 100644 --- a/live_ast.gemspec +++ b/live_ast.gemspec @@ -38,7 +38,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rake-manifest", "~> 0.2.0" spec.add_development_dependency "rubocop", "~> 1.51" - spec.add_development_dependency "rubocop-minitest", "~> 0.33.0" + spec.add_development_dependency "rubocop-minitest", "~> 0.34.2" spec.add_development_dependency "rubocop-packaging", "~> 0.5.2" spec.add_development_dependency "rubocop-performance", "~> 1.20" spec.add_development_dependency "rubocop-rake", "~> 0.6.0" From a09a14e0dbaeffda50caabaa3a2b1b4f149f78c5 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Wed, 27 Dec 2023 09:49:10 +0100 Subject: [PATCH 2/3] Correct Minitest/AssertSame --- test/flush_cache_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/flush_cache_test.rb b/test/flush_cache_test.rb index 9ced0ab..81fd9de 100644 --- a/test/flush_cache_test.rb +++ b/test/flush_cache_test.rb @@ -61,8 +61,7 @@ def g ; end LiveAST.flush_cache - assert_equal f_ast.object_id, - klass.instance_method(:f).to_ast.object_id + assert_same f_ast, klass.instance_method(:f).to_ast assert_raises LiveAST::ASTNotFoundError do klass.instance_method(:g).to_ast @@ -96,7 +95,7 @@ def flush_lambda LiveAST.flush_cache - assert_equal a_ast.object_id, a.to_ast.object_id + assert_same a_ast, a.to_ast assert_raises LiveAST::ASTNotFoundError do b.to_ast From 425393ec7f1ffefab7c05c97b9494dc47668c38c Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Wed, 27 Dec 2023 09:51:00 +0100 Subject: [PATCH 3/3] Autocorrect new Performance/StringIdentifierArgument offense --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index b7b10ef..d926ec5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -42,7 +42,7 @@ def assert_nothing_raised empty equal in_delta in_epsilon includes instance_of kind_of match nil operator respond_to same ).each { |name| - alias_method :"assert_not_#{name}", "refute_#{name}" + alias_method :"assert_not_#{name}", :"refute_#{name}" } end