Permalink
Browse files

Don't test mongrel if not available

  • Loading branch information...
chneukirchen committed Aug 9, 2008
1 parent 587f411 commit 0d958256f928a905f76134eee4828a809beb6cac
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/spec_rack_mongrel.rb
@@ -1,5 +1,6 @@
require 'test/spec'
+begin
require 'rack/handler/mongrel'
require 'rack/urlmap'
require 'rack/lint'
@@ -163,3 +164,7 @@
@acc.raise Mongrel::StopServer
end
end
+
+rescue LoadError
+ $stderr.puts "Skipping Rack::Handler::Mongrel tests (Mongrel is required). `gem install mongrel` and try again."
+end

0 comments on commit 0d95825

Please sign in to comment.