spec/support/shared_examples.rb in rubocop-0.12.0 vs spec/support/shared_examples.rb in rubocop-0.13.0
- old
+ new
@@ -20,10 +20,10 @@
# Compare objects before comparing counts for clear failure output.
cop.offences.each_with_index do |offence_by_cop, index|
offence_by_mri = offences_by_mri[index]
# Exclude column attribute since MRI does not
# output column number.
- [:severity, :line, :cop_name, :message].each do |a|
+ [:severity, :line, :cop_name].each do |a|
expect(offence_by_cop.send(a)).to eq(offence_by_mri.send(a))
end
end
expect(cop.offences.count).to eq(offences_by_mri.count)