build/test_basics.rb in passenger-4.0.33 vs build/test_basics.rb in passenger-4.0.34
- old
+ new
@@ -52,9 +52,18 @@
sh "#{gem_install} rails -v 2.3.15"
sh "#{gem_install} mime-types -v 1.25"
sh "#{gem_install} bundler rspec daemon_controller json rack"
end
if boolean_option('DOCTOOLS', default)
+ begin
+ require 'nokogiri'
+ rescue LoadError
+ if RUBY_VERSION < '1.9'
+ sh "#{gem_install} nokogiri -v 1.5.9"
+ else
+ sh "#{gem_install} nokogiri"
+ end
+ end
sh "#{gem_install} mizuho bluecloth"
end
if boolean_option('RAILS_BUNDLES', default)
sh "cd test/stub/rails3.0 && bundle install"
sh "cd test/stub/rails3.1 && bundle install"