summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-29 11:19:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-29 11:21:38 +0900
commitf83bebdf7a76e1ade3c5dc9d54cbffb9f761b453 (patch)
tree15627832fae0586877d241bf85c9b7cb3d96987d /test
parentba1cb388a9b29856ff1e1127a10c2ac727dabfc4 (diff)
downloadruby-f83bebdf7a76e1ade3c5dc9d54cbffb9f761b453.tar.gz
Skip useless test
`JSONGeneratorTest#test_remove_const_seg` is meaningful only for the extension library version, but nonsense for pure ruby version.
Diffstat (limited to 'test')
-rw-r--r--test/json/json_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/json_generator_test.rb b/test/json/json_generator_test.rb
index 3d9ab7a364..10cbcd1789 100644
--- a/test/json/json_generator_test.rb
+++ b/test/json/json_generator_test.rb
@@ -75,7 +75,7 @@ EOT
silence do
JSON.const_set :SAFE_STATE_PROTOTYPE, const
end
- end
+ end if JSON.const_defined?("Ext")
def test_generate
json = generate(@hash)