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:
parent
ddca63d477
commit
8ea318105c
1 changed files with 45 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue