diff --git a/test/test_utils.rb b/test/test_utils.rb index bf669886..7d899438 100644 --- a/test/test_utils.rb +++ b/test/test_utils.rb @@ -116,7 +116,7 @@ def assert_array_same_items(expected, actual, msg = nil) end def assert_sub_process_returns(expected_lines, code, extra_load_path = [], required = ['tzinfo']) - if RUBY_ENGINE == 'jruby' && JRUBY_VERSION.start_with?('9.0.') && RbConfig::CONFIG['host_os'] =~ /mswin/ + if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' && JRUBY_VERSION.start_with?('9.0.') && RbConfig::CONFIG['host_os'] =~ /mswin/ skip('JRuby 9.0 on Windows cannot handle writing to the IO instance returned by popen') end