mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
These tests are not necessary
This commit is contained in:
parent
c57bc31a6d
commit
ebe7c62c47
3 changed files with 0 additions and 56 deletions
|
@ -1,11 +0,0 @@
|
|||
describe Hamlit::Parser do
|
||||
describe 'doctype' do
|
||||
it 'parses html5 doctype' do
|
||||
assert_parse(<<-HAML) do
|
||||
!!!
|
||||
HAML
|
||||
[:multi, [:html, :doctype, 'html'], [:static, "\n"]]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,17 +0,0 @@
|
|||
describe Hamlit::Parser do
|
||||
describe 'silent script' do
|
||||
it 'parses silent script' do
|
||||
assert_parse(<<-HAML) do
|
||||
- 2.times do |i|
|
||||
= i
|
||||
HAML
|
||||
[:multi,
|
||||
[:multi,
|
||||
[:code, ' 2.times do |i|'],
|
||||
[:dynamic, ' i'],
|
||||
[:static, "\n"],
|
||||
[:code, 'end']]]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,28 +0,0 @@
|
|||
describe Hamlit::Parser do
|
||||
describe 'tag' do
|
||||
it 'parses one-line tag' do
|
||||
assert_parse(<<-HAML) do
|
||||
%span hello
|
||||
HAML
|
||||
[:multi,
|
||||
[:html, :tag, 'span', [:html, :attrs], [:static, 'hello']],
|
||||
[:static, "\n"]]
|
||||
end
|
||||
end
|
||||
|
||||
it 'parses multine tag' do
|
||||
assert_parse(<<-HAML) do
|
||||
%span
|
||||
hello
|
||||
HAML
|
||||
[:multi,
|
||||
[:html,
|
||||
:tag,
|
||||
'span',
|
||||
[:html, :attrs],
|
||||
[:multi, [:static, "\n"], [:static, 'hello'], [:static, "\n"]]],
|
||||
[:static, "\n"]]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue