aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/multibyte_handler_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/multibyte_handler_test.rb')
-rw-r--r--activesupport/test/multibyte_handler_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/test/multibyte_handler_test.rb b/activesupport/test/multibyte_handler_test.rb
index f61176886b..a52392b8bd 100644
--- a/activesupport/test/multibyte_handler_test.rb
+++ b/activesupport/test/multibyte_handler_test.rb
@@ -1,6 +1,8 @@
require 'abstract_unit'
-$KCODE = 'UTF8' if RUBY_VERSION < '1.9'
+if RUBY_VERSION < '1.9'
+
+$KCODE = 'UTF8'
class String
# Unicode Inspect returns the codepoints of the string in hex
@@ -365,3 +367,5 @@ class UTF8HandlingTestPure < Test::Unit::TestCase
@handler = ::ActiveSupport::Multibyte::Handlers::UTF8Handler
end
end
+
+end