1
0
Fork 0
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:
Nathan Weizenbaum 2009-02-07 19:46:31 -08:00
parent a0dda5f1ea
commit 42c3612c09

View file

@ -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&#x000A;Bar", flatten("Foo\nBar"))
assert_equal("Foo&#x000A;Bar", Haml::Helpers.flatten("Foo\nBar"))
assert_equal("Hello&#x000A;World!&#x000A;YOU ARE FLAT?&#x000A;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