aboutsummaryrefslogtreecommitdiffstats
path: root/test/json/test_json_unicode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_json_unicode.rb')
-rwxr-xr-xtest/json/test_json_unicode.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/json/test_json_unicode.rb b/test/json/test_json_unicode.rb
index b8a37c8b8d..1454fe197d 100755
--- a/test/json/test_json_unicode.rb
+++ b/test/json/test_json_unicode.rb
@@ -2,7 +2,11 @@
# -*- coding: utf-8 -*-
require 'test/unit'
-require 'json'
+case ENV['JSON']
+when 'pure' then require 'json/pure'
+when 'ext' then require 'json/ext'
+else require 'json'
+end
class TC_JSONUnicode < Test::Unit::TestCase
include JSON