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

suppress a warning:

lib/capybara/selenium/driver.rb:22: warning: instance variable @exit_status not initialized
This commit is contained in:
Kouhei Sutou 2012-01-08 23:02:24 +09:00
parent 16145ad11d
commit ab36126ad2

View file

@ -28,6 +28,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
def initialize(app, options={})
@app = app
@browser = nil
@exit_status = nil
@options = DEFAULT_OPTIONS.merge(options)
@rack_server = Capybara::Server.new(@app)
@rack_server.boot if Capybara.run_server