aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/json/encoding_test.rb
diff options
context:
space:
mode:
authorManfred Stienstra <manfred@fngtps.com>2008-09-21 17:22:55 +0200
committerManfred Stienstra <manfred@fngtps.com>2008-09-21 17:22:55 +0200
commit021172208885be0c137a9d5f352f862479044e7a (patch)
tree124106443ceade8c49721806abb800ddd87d1c70 /activesupport/test/json/encoding_test.rb
parent042fd971271791659c90e065e761cf90d3117b74 (diff)
downloadrails-021172208885be0c137a9d5f352f862479044e7a.tar.gz
rails-021172208885be0c137a9d5f352f862479044e7a.tar.bz2
rails-021172208885be0c137a9d5f352f862479044e7a.zip
Move with_kcode helper to abstract_unit. Add tests for multibyte string extensions.
Diffstat (limited to 'activesupport/test/json/encoding_test.rb')
-rw-r--r--activesupport/test/json/encoding_test.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb
index 38bb8f3e79..497f028369 100644
--- a/activesupport/test/json/encoding_test.rb
+++ b/activesupport/test/json/encoding_test.rb
@@ -101,18 +101,6 @@ class TestJSONEncoding < Test::Unit::TestCase
end
protected
- def with_kcode(code)
- if RUBY_VERSION < '1.9'
- begin
- old_kcode, $KCODE = $KCODE, 'UTF8'
- yield
- ensure
- $KCODE = old_kcode
- end
- else
- yield
- end
- end
def object_keys(json_object)
json_object[1..-2].scan(/([^{}:,\s]+):/).flatten.sort