1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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"
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