1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

fail_with_message(_including): Tweak failure messages

This commit is contained in:
Elliot Winkler 2015-12-22 02:01:57 -05:00
parent 1b0a36a3ab
commit 3e0c73f252
2 changed files with 3 additions and 3 deletions

View file

@ -24,10 +24,10 @@ module UnitTests
lines << Shoulda::Matchers::Util.indent(expected, 2)
if @actual
lines << 'Actually failed with:'
lines << 'The full message was:'
lines << Shoulda::Matchers::Util.indent(@actual, 2)
else
lines << 'However, the expectation did not fail.'
lines << 'However, the expectation did not fail at all.'
end
lines.join("\n")

View file

@ -32,7 +32,7 @@ module UnitTests
2
)
else
lines << 'However, the expectation did not fail.'
lines << 'However, the expectation did not fail at all.'
end
lines.join("\n")