Don't delete browser from options, closes #200

This commit is contained in:
Jonas Nicklas 2010-12-22 16:51:10 +01:00
parent 86491cb060
commit e514f2e99c
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Capybara::Driver::Selenium < Capybara::Driver::Base
def browser
unless @browser
@browser = Selenium::WebDriver.for(options.delete(:browser) || :firefox, options)
@browser = Selenium::WebDriver.for(options[:browser] || :firefox, options)
at_exit do
@browser.quit
end