test/helper.rb in nanoc-4.4.4 vs test/helper.rb in nanoc-4.4.5

- old
+ new

@@ -26,9 +26,15 @@ def disable_nokogiri? ENV.key?('DISABLE_NOKOGIRI') end + def skip_v8_on_ruby24 + if ENV.key?('DISABLE_V8') + skip 'V8 specs are disabled (broken on Ruby 2.4)' + end + end + def if_have(*libs) libs.each do |lib| if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' && lib == 'nokogiri' && disable_nokogiri? skip 'Pure Java Nokogiri has issues that cause problems with nanoc (see https://github.com/nanoc/nanoc/pull/422) -- run without DISABLE_NOKOGIRI to enable Nokogiri tests' end