Fix warnings for rspec 3

This commit is contained in:
Arthur Neves
2015-04-25 11:47:20 -04:00
parent f84541b1ba
commit 8f0fb511c3
3 changed files with 3 additions and 4 deletions

View File

@ -6,11 +6,11 @@ RSpec::Matchers.define :match_html do |expected|
a.eql? b
end
failure_message_for_should do |actual|
failure_message do |actual|
"after sanitizing for extra white space and compactness, expected:\n#{actual}\n to match:\n#{expected}"
end
failure_message_for_should_not do |actual|
failure_message_when_negated do |actual|
"after sanitizing for extra white space and compactness, expected:\n#{actual}\n not to match:\n#{expected}"
end