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

Add a spec to confirm silent script is disabled

This commit is contained in:
Takashi Kokubun 2015-03-16 15:19:22 +09:00
parent 9d2d4ff6c1
commit 279ed12d32

View file

@ -143,5 +143,13 @@ describe Hamlit::Engine do
<-_>foo</-_>
HTML
end
it 'does not render silent script just after a tag' do
assert_render(<<-HAML, <<-HTML)
%span- raise 'a'
HAML
<span->raise 'a'</span->
HTML
end
end
end