mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Haml] Fix another 1.9 test failure.
This commit is contained in:
parent
a0dda5f1ea
commit
42c3612c09
1 changed files with 4 additions and 5 deletions
|
@ -9,7 +9,6 @@ class ActionView::Base
|
|||
end
|
||||
|
||||
class HelperTest < Test::Unit::TestCase
|
||||
include Haml::Helpers
|
||||
Post = Struct.new('Post', :body)
|
||||
|
||||
def setup
|
||||
|
@ -28,14 +27,14 @@ class HelperTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_flatten
|
||||
assert_equal("FooBar", flatten("FooBar"))
|
||||
assert_equal("FooBar", Haml::Helpers.flatten("FooBar"))
|
||||
|
||||
assert_equal("FooBar", flatten("Foo\rBar"))
|
||||
assert_equal("FooBar", Haml::Helpers.flatten("Foo\rBar"))
|
||||
|
||||
assert_equal("Foo
Bar", flatten("Foo\nBar"))
|
||||
assert_equal("Foo
Bar", Haml::Helpers.flatten("Foo\nBar"))
|
||||
|
||||
assert_equal("Hello
World!
YOU ARE FLAT?
OMGZ!",
|
||||
flatten("Hello\nWorld!\nYOU ARE \rFLAT?\n\rOMGZ!"))
|
||||
Haml::Helpers.flatten("Hello\nWorld!\nYOU ARE \rFLAT?\n\rOMGZ!"))
|
||||
end
|
||||
|
||||
def test_list_of_should_render_correctly
|
||||
|
|
Loading…
Reference in a new issue