lib/rubocop/cop/mixin/minitest_exploration_helpers.rb in rubocop-minitest-0.24.0 vs lib/rubocop/cop/mixin/minitest_exploration_helpers.rb in rubocop-minitest-0.25.0

- old
+ new

@@ -36,10 +36,10 @@ def test_cases(class_node) test_cases = class_def_nodes(class_node).select { |def_node| test_case_name?(def_node.method_name) } # Support Active Support's `test 'example' { ... }` method. # https://api.rubyonrails.org/classes/ActiveSupport/Testing/Declarative.html - test_blocks = class_node.each_descendant(:block).select { |block_node| block_node.method?(:test) } + test_blocks = class_node.each_descendant(:block).select { |block| block.method?(:test) || block.method?(:it) } test_cases + test_blocks end def lifecycle_hooks(class_node)