lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-1.28.0
- old
+ new
@@ -27,11 +27,9 @@
# end
#
class ScatteredLet < Cop
MSG = 'Group all let/let! blocks in the example group together.'.freeze
- def_node_matcher :let?, Helpers::ALL.block_pattern
-
def on_block(node)
return unless example_group_with_body?(node)
check_let_declarations(node.body)
end