Commit 87a57e1
committed
fix: correct ERB test expectations for trim_mode behavior
The ERB renderer uses trim_mode: "-" which has specific newline handling:
- <% code %> preserves the newline after the tag
- <% code -%> suppresses the newline after the tag
Fixed 5 failing tests by:
1. Removing incorrect blank line expectation in 'skips block when property is missing'
2. Adding -%> to opening if tags in 4 conditional tests to suppress unwanted newlines
3. Removing leading newlines from expected output where appropriate
These changes align test expectations with standard ERB behavior.1 parent 53e323b commit 87a57e1
1 file changed
+13
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
| |||
466 | 465 | | |
467 | 466 | | |
468 | 467 | | |
469 | | - | |
| 468 | + | |
470 | 469 | | |
471 | 470 | | |
472 | | - | |
| 471 | + | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
| |||
955 | 954 | | |
956 | 955 | | |
957 | 956 | | |
958 | | - | |
| 957 | + | |
959 | 958 | | |
960 | 959 | | |
961 | | - | |
| 960 | + | |
962 | 961 | | |
963 | 962 | | |
964 | | - | |
965 | | - | |
| 963 | + | |
966 | 964 | | |
967 | 965 | | |
968 | 966 | | |
| |||
1001 | 999 | | |
1002 | 1000 | | |
1003 | 1001 | | |
1004 | | - | |
| 1002 | + | |
1005 | 1003 | | |
1006 | 1004 | | |
1007 | | - | |
| 1005 | + | |
1008 | 1006 | | |
1009 | 1007 | | |
1010 | | - | |
| 1008 | + | |
1011 | 1009 | | |
1012 | 1010 | | |
1013 | | - | |
| 1011 | + | |
1014 | 1012 | | |
1015 | 1013 | | |
1016 | | - | |
1017 | | - | |
| 1014 | + | |
1018 | 1015 | | |
1019 | 1016 | | |
1020 | 1017 | | |
| |||
1053 | 1050 | | |
1054 | 1051 | | |
1055 | 1052 | | |
1056 | | - | |
| 1053 | + | |
1057 | 1054 | | |
1058 | 1055 | | |
1059 | | - | |
| 1056 | + | |
1060 | 1057 | | |
1061 | 1058 | | |
1062 | | - | |
1063 | | - | |
| 1059 | + | |
1064 | 1060 | | |
1065 | 1061 | | |
1066 | 1062 | | |
| |||
0 commit comments