aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/text_helper_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-09-04 19:26:32 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-09-04 19:26:32 +0000
commitd4bb22b2201c1ece5dcbec7859e5e3039f9b2ec2 (patch)
tree1bfacd26b6dc3995c450b5f1b319a05c28a3830e /actionpack/test/template/text_helper_test.rb
parenta693b3becad44f9e1e2fdacab26c1f367ad6ce71 (diff)
downloadrails-d4bb22b2201c1ece5dcbec7859e5e3039f9b2ec2.tar.gz
rails-d4bb22b2201c1ece5dcbec7859e5e3039f9b2ec2.tar.bz2
rails-d4bb22b2201c1ece5dcbec7859e5e3039f9b2ec2.zip
Fixed TextHelper#simple_format to deal with multiple single returns within a single paragraph (closes #5835) [moriq@moriq.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/text_helper_test.rb')
-rw-r--r--actionpack/test/template/text_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index cf945365b4..850175109a 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -16,6 +16,7 @@ class TextHelperTest < Test::Unit::TestCase
assert_equal "<p>crazy\n<br /> cross\n<br /> platform linebreaks</p>", simple_format("crazy\r\n cross\r platform linebreaks")
assert_equal "<p>A paragraph</p>\n\n<p>and another one!</p>", simple_format("A paragraph\n\nand another one!")
assert_equal "<p>A paragraph\n<br /> With a newline</p>", simple_format("A paragraph\n With a newline")
+ assert_equal "<p>A\n<br />B\n<br />C\n<br />D</p>", simple_format("A\nB\nC\nD")
end
def test_truncate