lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.11.1 vs lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.12.0
- old
+ new
@@ -33,10 +33,10 @@
lines = occurrences.map(&:first_line)
occurrences.each do |occurrence|
lines_except_current = lines - [occurrence.first_line]
message = format(MSG, hook_name: occurrences.first.method_name,
- lines: lines_msg(lines_except_current))
+ lines: lines_msg(lines_except_current))
add_offense(occurrence, message: message)
end
end
end