pivotal/jasmine-gem — pull request #89 by mavenlink (2012-05-07 20:25:10+00:00)
Title: Allow passing timeout to the Jasmine::SeleniumDriver to handle very slow selenium startups

This patch allows passing of a timeout to the selenium driver to override the default selenium startup timeout. This fixes some `rbuf_fill` `Timeout::Error` issues that we've been having sporadically on CI. You use it from your `jasmine_config.rb` file like this:

module Jasmine
class Config
# Override start to let us set a larger timeout.
def start
start_jasmine_server
@client = Jasmine::SeleniumDriver.new(browser, "#{jasmine_host}:#{@jasmine_server_port}/", :timeout => 180)
@client.connect
end
end
end

Is there a better way to do this?