Commit a7157c2
committed
Use Minitest::Assertion#diff for content failure messages
So where it previously would output:
<
"This is not a big problem," he said.
> expected but was
<"This is not a big problem," he said.
>.
Expected 0 to be >= 1.
it now outputs:
--- expected
+++ actual
@@ -1,3 +1,2 @@
-"
-\"This is not a big problem,\" he said.
+"\"This is not a big problem,\" he said.
"
.
Expected 0 to be >= 1.
Also improve the count failure message.1 parent 8deceed commit a7157c2
File tree
2 files changed
+4
-2
lines changed- lib/rails/dom/testing/assertions
- selector_assertions
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments