We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f1b33 commit d20b4edCopy full SHA for d20b4ed
test/test.rb
@@ -278,6 +278,14 @@ def self.quux
278
@a.must_equal 'bar'
279
end
280
281
+ it "should handle trailing rspace with - modifier in <%|= and <%|" do
282
+ eval(::Erubi::CaptureEndEngine.new("<%|= '&' -%>\n<%| -%>\n").src).must_equal '&'
283
+ end
284
+
285
+ it "should handle lspace in <%|=" do
286
+ eval(::Erubi::CaptureEndEngine.new("<%|= %><%| %><%|= %><%| %>").src).must_equal ''
287
288
289
it "should have <%|= with CaptureEndEngine not escape by default" do
290
eval(::Erubi::CaptureEndEngine.new('<%|= "&" %><%| %>').src).must_equal '&'
291
eval(::Erubi::CaptureEndEngine.new('<%|= "&" %><%| %>', :escape=>false).src).must_equal '&'
0 commit comments