mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
29 lines
591 B
Ruby
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
|