Skip to content

Commit

Permalink
Minor improvement to assertion reporting, to avoid lines being hidden…
Browse files Browse the repository at this point in the history
… for some assertions
  • Loading branch information
wakaleo committed Nov 12, 2015
1 parent 8edf62c commit 4c20cd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public String getShortenedMessage() {
}

private String withCollapedAssertionError(String message) {
return (message.contains("AssertionError")) ?
return (message.contains("AssertionError") || message.contains("Expected")) ?
message.replace("\r\n", "")
.replace("\\r\\n", "")
.replace("/r/n", "")
Expand Down

0 comments on commit 4c20cd5

Please sign in to comment.