1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Add a test for unmatched braces

This commit is contained in:
Takashi Kokubun 2015-03-16 04:34:28 +09:00
parent 4a6ed79358
commit 542c67e50a

View file

@ -47,5 +47,13 @@ describe Hamlit::Engine do
<span data-disable="true">bar</span>
HTML
end
it 'accepts even illegal input for haml' do
assert_render(<<-'HAML', <<-HTML)
%span{ class: "}}}", id: '{}}' } }{
HAML
<span class="}}}" id="{}}">}{</span>
HTML
end
end
end