From 292ed5967f59497b27f6851116f1a6876ebfdeba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 06:38:52 +0000 Subject: [PATCH 1/2] Update rubocop-minitest requirement from ~> 0.34.2 to ~> 0.35.0 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.34.2...v0.35.0) --- 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 127fa71..cb67881 100644 --- a/live_ast.gemspec +++ b/live_ast.gemspec @@ -39,7 +39,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.34.2" + spec.add_development_dependency "rubocop-minitest", "~> 0.35.0" 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 d0f85aa0a53a2a4ba2e23b2f4ea912eda3f8bdea Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sun, 17 Mar 2024 15:42:12 +0100 Subject: [PATCH 2/2] Autocorrect Minitest/AssertKindOf offenses --- test/full/replace_eval_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/full/replace_eval_test.rb b/test/full/replace_eval_test.rb index b8652ca..be07e62 100644 --- a/test/full/replace_eval_test.rb +++ b/test/full/replace_eval_test.rb @@ -329,7 +329,7 @@ def test_module_eval_binding RUBY assert_equal 33, orig.new.value - assert orig.new.f.is_a?(Proc) + assert_kind_of Proc, orig.new.f y = 44 ignore(y) @@ -344,7 +344,7 @@ def test_module_eval_binding RUBY assert_equal 44, live.new.value - assert live.new.g.is_a?(Proc) + assert_kind_of Proc, live.new.g assert_equal no_arg_block(:lambda, "g return"), live.new.g.to_ast