diff options
Diffstat (limited to 'spec/support/hax.rb')
-rw-r--r-- | spec/support/hax.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/hax.rb b/spec/support/hax.rb index 202e8dcc32..826fbbcc0f 100644 --- a/spec/support/hax.rb +++ b/spec/support/hax.rb @@ -40,7 +40,7 @@ end class Object if ENV["BUNDLER_SPEC_RUBY_ENGINE"] - if defined?(RUBY_ENGINE) && RUBY_ENGINE != "jruby" && ENV["BUNDLER_SPEC_RUBY_ENGINE"] == "jruby" + if RUBY_ENGINE != "jruby" && ENV["BUNDLER_SPEC_RUBY_ENGINE"] == "jruby" begin # this has to be done up front because psych will try to load a .jar # if it thinks its on jruby @@ -50,7 +50,7 @@ class Object end end - remove_const :RUBY_ENGINE if defined?(RUBY_ENGINE) + remove_const :RUBY_ENGINE RUBY_ENGINE = ENV["BUNDLER_SPEC_RUBY_ENGINE"] if RUBY_ENGINE == "jruby" |