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:
parent
4a6ed79358
commit
542c67e50a
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue