Skip to content

Commit 49f1b33

Browse files
committed
Test <%= tailch rspace branch and src ending with newline branch
1 parent 1d73ba2 commit 49f1b33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,22 @@ def self.quux
123123

124124
it "should escape all backslashes and apostrophes in text" do
125125
list = ['&\'<>"2']
126-
check_output(<<END1, <<END2, <<END3){}
126+
check_output(<<END1.chomp, <<END2, <<END3){}
127127
<table>
128128
<tbody>' ' \\ \\
129129
<% i = 0
130130
list.each_with_index do |item, i| %>
131131
<tr>
132-
<td><%= i+1 %></td>
132+
<td><%= i+1 -%>
133+
</td>
133134
<td><%== item %></td>
134135
</tr>
135136
<% end %>
136137
</tbody>
137138
</table>
138139
<%== i+1 %>
140+
<%
141+
%>
139142
END1
140143
_buf = ::String.new; _buf << '<table>
141144
<tbody>\\' \\' \\\\ \\\\

0 commit comments

Comments
 (0)