aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2016-10-21 14:36:51 -0500
committerCharles Oliver Nutter <headius@headius.com>2016-10-21 14:36:51 -0500
commit9531e69f996643b57d25f6b9faa08346f011eed8 (patch)
tree0f7dd227cbf1a3e7600c19ad5820cd140f615223
parente16a5fb508bf7833d7f7a9429ccd3b20990b7d4b (diff)
downloadrails-9531e69f996643b57d25f6b9faa08346f011eed8.tar.gz
rails-9531e69f996643b57d25f6b9faa08346f011eed8.tar.bz2
rails-9531e69f996643b57d25f6b9faa08346f011eed8.zip
Skip test that depends on RubyVM when it is not available (JRuby).
-rw-r--r--activesupport/test/executor_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/executor_test.rb b/activesupport/test/executor_test.rb
index d409216206..03ec6020c3 100644
--- a/activesupport/test/executor_test.rb
+++ b/activesupport/test/executor_test.rb
@@ -192,6 +192,8 @@ class ExecutorTest < ActiveSupport::TestCase
end
def test_class_serial_is_unaffected
+ skip if !defined?(RubyVM)
+
hook = Class.new do
define_method(:run) do
nil