diff --git a/lib/capybara/server.rb b/lib/capybara/server.rb index 9f38ee75e..3fdcb1c0b 100644 --- a/lib/capybara/server.rb +++ b/lib/capybara/server.rb @@ -68,7 +68,7 @@ def boot Capybara.timeout(10) { if responsive? then true else sleep(0.5) and false end } end end - rescue Timeout::Error + rescue TimeoutError puts "Rack application timed out during boot" exit else