1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/spec/hamlit/engine/comment_spec.rb
2015-03-16 06:26:36 +09:00

29 lines
591 B
Ruby

describe Hamlit::Parser do
describe 'comment' do
it 'renders html comment' do
assert_render(<<-HAML, <<-HTML)
/ comments
HAML
<!-- comments -->
HTML
end
it 'strips html comment ignoring around spcaes' do
assert_render('/ comments ', <<-HTML)
<!-- comments -->
HTML
end
it 'ignores multiline comment' do
assert_render(<<-'HAML', <<-HTML)
-# if true
- raise 'ng'
= invalid script
too deep indent
ok
HAML
ok
HTML
end
end
end