Skip to content

Commit 9a6ab5e

Browse files
committed
Fix "warning: instance variable @browser not initialized"
Followup to 0009699.
1 parent 4a906cb commit 9a6ab5e

File tree

1 file changed

+2
-0
lines changed
  • actionpack/lib/action_dispatch/system_testing

1 file changed

+2
-0
lines changed

actionpack/lib/action_dispatch/system_testing/driver.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def initialize(name, **options, &capabilities)
1313
require "selenium/webdriver"
1414
@browser = Browser.new(options[:using])
1515
@browser.preload
16+
else
17+
@browser = nil
1618
end
1719
end
1820

0 commit comments

Comments
 (0)