src/project.rb in jspec-steventux-3.3.2 vs src/project.rb in jspec-steventux-3.3.2.1
- old
+ new
@@ -195,17 +195,18 @@
##
# Start server with _path_ html and _options_.
def start_server path, options = {}
options[:port] ||= 4444
+ options[:timeout] ||= 15
set :port, options[:port]
set :server, 'Mongrel'
enable :sessions
disable :logging
hook = File.expand_path normalize('server.rb')
load hook if File.exists? hook
browsers = browsers_for(options[:browsers]) if options.include? :browsers
- JSpec::Server.new(path, options[:port]).start(browsers)
+ JSpec::Server.new(path, options[:port], options[:timeout]).start(browsers)
end
##
# Return array of browser instances for the given _names_.