Darrin Holst to contributors

This commit is contained in:
Jonas Nicklas 2010-02-26 09:04:45 +01:00
parent 5325d6a9c4
commit 20e32d9d4a
2 changed files with 11 additions and 8 deletions

View File

@ -377,6 +377,7 @@ The following people have dedicated their time and effort to Capybara:
* Pavel Gabriel
* Bodaniel Jeanes
* Carl Porth
* Darrin Holst
== License:

View File

@ -59,16 +59,18 @@ class Capybara::Server
Capybara.log "application has already booted" and return self if responsive?
Capybara.log "booting Rack applicartion on port #{port}"
Timeout.timeout(10) do
Thread.new do
handler.run(Identify.new(@app), :Port => port, :AccessLog => [])
end
Capybara.log "checking if application has booted"
Thread.new do
handler.run(Identify.new(@app), :Port => port, :AccessLog => [])
end
Capybara.log "checking if application has booted"
loop do
Capybara.log("application has booted") and break if responsive?
Capybara.log("waiting for application to boot...")
Capybara::WaitUntil.timeout(10) do
if responsive?
Capybara.log("application has booted")
true
else
sleep 0.5
false
end
end
self