summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--tests/json_generator_test.rb3
2 files changed, 1 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index a287523..78b19dd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,8 +19,6 @@ rvm:
matrix:
allow_failures:
- rvm: ruby-head
- - rvm: jruby-9.1
- - rvm: jruby-9.2
- rvm: truffleruby
script: "bundle exec rake"
sudo: false
diff --git a/tests/json_generator_test.rb b/tests/json_generator_test.rb
index ee19fa5..028f82f 100644
--- a/tests/json_generator_test.rb
+++ b/tests/json_generator_test.rb
@@ -49,7 +49,6 @@ EOT
end
def test_remove_const_segv
- return if RUBY_ENGINE == 'jruby'
stress = GC.stress
const = JSON::SAFE_STATE_PROTOTYPE.dup
@@ -76,7 +75,7 @@ EOT
silence do
JSON.const_set :SAFE_STATE_PROTOTYPE, const
end
- end if JSON.const_defined?("Ext")
+ end if JSON.const_defined?("Ext") && RUBY_ENGINE != 'jruby'
def test_generate
json = generate(@hash)