aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-03-11 17:08:33 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-11 17:42:29 -0800
commit1f6c5677ad18a2d49866100b043b82bd030875d4 (patch)
tree6da58aa4af0ca4ccd8453d54efc9e0338e4f1002 /activesupport/test/core_ext
parent698312de872b5410fa523f5164ef10518d8c92e9 (diff)
downloadrails-1f6c5677ad18a2d49866100b043b82bd030875d4.tar.gz
rails-1f6c5677ad18a2d49866100b043b82bd030875d4.tar.bz2
rails-1f6c5677ad18a2d49866100b043b82bd030875d4.zip
OutputBuffer#to_yaml should return string yaml, not some custom class dump
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index d8145d467b..6b296fb757 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -444,6 +444,10 @@ class OutputSafetyTest < ActiveSupport::TestCase
assert_equal "hello".concat(13), string
assert string.html_safe?
end
+
+ test 'emits normal string yaml' do
+ assert_equal 'foo'.to_yaml, 'foo'.html_safe.to_yaml
+ end
end
class StringExcludeTest < ActiveSupport::TestCase