lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -29,11 +29,11 @@ class ScatteredLet < Base extend AutoCorrector MSG = 'Group all let/let! blocks in the example group together.' - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless example_group_with_body?(node) check_let_declarations(node.body) end @@ -50,13 +50,9 @@ RuboCop::RSpec::Corrector::MoveNode.new( node, corrector, processed_source ).move_after(first_let) end end - end - - def find_first_let(node) - node.children.find { |child| let?(child) } end end end end end