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

[Haml] Add some failing tests involving multiline and filters.

This commit is contained in:
Nathan Weizenbaum 2009-03-18 10:47:39 -07:00
parent ddca63d477
commit 8ea318105c

View file

@ -305,6 +305,51 @@ HTML
HAML
end
def test_multiline_with_colon_after_filter
assert_equal(<<HTML, render(<<HAML))
Foo
Bar
HTML
:plain
Foo
= { :a => "Bar", |
:b => "Baz" }[:a] |
HAML
assert_equal(<<HTML, render(<<HAML))
Bar
HTML
:plain
= { :a => "Bar", |
:b => "Baz" }[:a] |
HAML
end
def test_multiline_with_colon_after_filter
assert_equal(<<HTML, render(<<HAML))
Foo
Bar
HTML
:plain
Foo
= { :a => "Bar", |
:b => "Baz" }[:a] |
HAML
end
def test_multiline_in_filter
assert_equal(<<HTML, render(<<HAML))
Foo |
Bar |
Baz
HTML
:plain
Foo |
Bar |
Baz
HAML
end
# HTML escaping tests
def test_ampersand_equals_should_escape