test/helper.rb in nanoc-4.0.2 vs test/helper.rb in nanoc-4.1.0a1
- old
+ new
@@ -31,17 +31,15 @@
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'
- return
end
begin
require lib
rescue LoadError
skip "requiring #{lib} failed"
- return
end
end
yield
end