aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/multibyte_chars_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-01-31 22:37:25 -0800
committerJosé Valim <jose.valim@plataformatec.com.br>2012-01-31 22:37:25 -0800
commit7179fad54d6df46f944ccdb404d02c2ef360d912 (patch)
treec3a6741e59eb83de8e6d96d059cc4685108d2b7c /activesupport/test/multibyte_chars_test.rb
parentd613d607372d4be29773993994afcd4315718e51 (diff)
parent705a1d5b881604364a6891d16ae0ae43592b1c9c (diff)
downloadrails-7179fad54d6df46f944ccdb404d02c2ef360d912.tar.gz
rails-7179fad54d6df46f944ccdb404d02c2ef360d912.tar.bz2
rails-7179fad54d6df46f944ccdb404d02c2ef360d912.zip
Merge pull request #4808 from route/mb_chars_as_json
Added as_json method for multibyte strings
Diffstat (limited to 'activesupport/test/multibyte_chars_test.rb')
-rw-r--r--activesupport/test/multibyte_chars_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb
index 63e7a35c01..90aa13b3e6 100644
--- a/activesupport/test/multibyte_chars_test.rb
+++ b/activesupport/test/multibyte_chars_test.rb
@@ -88,6 +88,9 @@ class MultibyteCharsTest < ActiveSupport::TestCase
assert(('a'.mb_chars << 'b'.mb_chars).kind_of?(@proxy_class))
end
+ def test_should_return_string_as_json
+ assert_equal UNICODE_STRING, @chars.as_json
+ end
end
class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase