Commit f94ac0a
committed
Remove quotes from Regexp when printing error messages.
Already found a way to make this look nicer. Since the `@css_selector` is purely for
presentation and never hits Nokogiri it doesn't have to be in quotes and we can make it
look like the what the user put in.
Replaces `div:match\('id',\ "\/wups\/"\)` with `div:match('id', /wups/)`.1 parent 946a801 commit f94ac0a
File tree
2 files changed
+6
-5
lines changed- lib/rails/dom/testing/assertions/selector_assertions
- test
2 files changed
+6
-5
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
26 | | - | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
0 commit comments