lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/scattered_let.rb in rubocop-rspec-1.30.0
- old
+ new
@@ -41,9 +41,10 @@
lets = body.each_child_node.select { |node| let?(node) }
first_let = lets.first
lets.each_with_index do |node, idx|
next if node.sibling_index == first_let.sibling_index + idx
+
add_offense(node, location: :expression)
end
end
end
end