Skip to content

Commit

Permalink
Test that RUBY_ENGINE is defined.
Browse files Browse the repository at this point in the history
Fixes a test failure on Ruby 1.8.7:
https://travis-ci.org/tzinfo/tzinfo/jobs/422752019
  • Loading branch information
philr committed Aug 30, 2018
1 parent 7a660fc commit f61cfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_utils.rb
Expand Up @@ -102,7 +102,7 @@ def skip_if_has_bug_14060
# any file that has not previously been loaded, regardless of whether the
# file name is tainted.
# See https://bugs.ruby-lang.org/issues/14060#note-5.
if RUBY_ENGINE == 'ruby' && RUBY_VERSION == '2.4.4'
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && RUBY_VERSION == '2.4.4'
skip('Skipping test due to Ruby 2.4.4 being affected by Bug 14060 (see https://bugs.ruby-lang.org/issues/14060#note-5)')
end
end
Expand Down

0 comments on commit f61cfe6

Please sign in to comment.