aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorCasebook Developer <casebook-dev@googlegroups.com>2011-08-04 13:34:47 -0400
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:29 -0700
commitebfca248f9084f8176f6b5b993d9c3c99d06737b (patch)
tree220e909c1acd2a74446d871967d7bbdc545b2317 /actionpack/test
parent6b8091731445dcd0a1843c59b84cd4e2b5b8b66c (diff)
downloadrails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.tar.gz
rails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.tar.bz2
rails-ebfca248f9084f8176f6b5b993d9c3c99d06737b.zip
ActionView::Helpers::TextHelper#simple_format should not change the text in place. Now it duplicates it.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/text_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index f7c3986bb1..02f9609483 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -48,10 +48,10 @@ class TextHelperTest < ActionView::TestCase
assert_equal "<p><b> test with unsafe string </b><script>code!</script></p>", simple_format("<b> test with unsafe string </b><script>code!</script>", {}, :sanitize => false)
end
- def test_simple_format_should_not_change_the_frozen_text_passed
+ def test_simple_format_should_not_change_the_text_passed
text = "<b>Ok</b><script>code!</script>"
text_clone = text.dup
- simple_format(text.freeze)
+ simple_format(text)
assert_equal text_clone, text
end