From e0e66f8468f20c61882752b8f8c694825683bc48 Mon Sep 17 00:00:00 2001 From: Phil Ross Date: Wed, 26 Feb 2020 20:20:57 +0000 Subject: [PATCH] Fix test failures on Ruby 1.8.7. https://travis-ci.org/tzinfo/tzinfo/jobs/655518112 --- test/test_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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