Improve failure messages for failure message matchers
This commit is contained in:
parent
b4082877fd
commit
8e049c149f
|
@ -23,7 +23,7 @@ module UnitTests
|
|||
msg = "Expectation should have failed with message including '#{expected}'"
|
||||
|
||||
if @actual
|
||||
msg << ", actually failed with '#{@actual}'"
|
||||
msg << ",\nactually failed with '#{@actual}'"
|
||||
else
|
||||
msg << ", but did not fail."
|
||||
end
|
||||
|
|
|
@ -23,7 +23,7 @@ module UnitTests
|
|||
msg = "Expectation should have failed with message '#{expected}'"
|
||||
|
||||
if @actual
|
||||
msg << ", actually failed with '#{@actual}'"
|
||||
msg << ",\nactually failed with '#{@actual}'"
|
||||
else
|
||||
msg << ", but did not fail."
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue