Skip to content

Instantly share code, notes, and snippets.

@seancribbs
Created September 4, 2009 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seancribbs/180991 to your computer and use it in GitHub Desktop.
Save seancribbs/180991 to your computer and use it in GitHub Desktop.
# From webrat/selenium/application_servers/base.rb
TCPSocket.wait_for_service_with_timeout \
:host => "0.0.0.0",
:port => Webrat.configuration.application_port.to_i,
:timeout => 30 # seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment