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" 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 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