Skip to content

Commit

Permalink
Catch MissingSourceFile error raised when mongrel isn't installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
gma committed Jan 21, 2010
1 parent 05fd0d3 commit c50d9c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/server.rb
Expand Up @@ -51,9 +51,9 @@ def boot

Timeout.timeout(10) do
Thread.new do
if defined?(Rack::Handler::Mongrel)
begin
Rack::Handler::Mongrel.run(Identify.new(@app), :Port => port)
else
rescue LoadError
Rack::Handler::WEBrick.run(Identify.new(@app), :Port => port, :AccessLog => [])
end
end
Expand Down

0 comments on commit c50d9c8

Please sign in to comment.