summaryrefslogtreecommitdiff
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
parentba1cb388a9b29856ff1e1127a10c2ac727dabfc4 (diff)
Skip useless test
`JSONGeneratorTest#test_remove_const_seg` is meaningful only for the extension library version, but nonsense for pure ruby version.
-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 3d9ab7a364d..10cbcd1789b 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)