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:
parent
1b0a36a3ab
commit
3e0c73f252
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue