Improve failure messages for failure message matchers

This commit is contained in:
Elliot Winkler 2014-11-19 11:48:12 -07:00
parent b4082877fd
commit 8e049c149f
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ module UnitTests
msg = "Expectation should have failed with message including '#{expected}'" msg = "Expectation should have failed with message including '#{expected}'"
if @actual if @actual
msg << ", actually failed with '#{@actual}'" msg << ",\nactually failed with '#{@actual}'"
else else
msg << ", but did not fail." msg << ", but did not fail."
end end

View File

@ -23,7 +23,7 @@ module UnitTests
msg = "Expectation should have failed with message '#{expected}'" msg = "Expectation should have failed with message '#{expected}'"
if @actual if @actual
msg << ", actually failed with '#{@actual}'" msg << ",\nactually failed with '#{@actual}'"
else else
msg << ", but did not fail." msg << ", but did not fail."
end end