Merge pull request #1090 from randoum/patch-2

Avoid NoMethodError when calling Capybara::Selenium::Driver#quit
This commit is contained in:
Jonas Nicklas 2013-08-26 07:37:51 -07:00
commit 5e1d159adf
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
end
def quit
@browser.quit
@browser.quit if @browser
rescue Errno::ECONNREFUSED
# Browser must have already gone
end