aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_testing
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-30 16:40:01 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-01-30 16:40:01 +0900
commit68eed60eee5d2f06408bb315a531bb6e49e9aeeb (patch)
treeb94531c15559284090e8ed99477069b8639023c1 /actionpack/lib/action_dispatch/system_testing
parentdeac9ec430f652ddea485c92f39f7b00ebb4d4a5 (diff)
downloadrails-68eed60eee5d2f06408bb315a531bb6e49e9aeeb.tar.gz
rails-68eed60eee5d2f06408bb315a531bb6e49e9aeeb.tar.bz2
rails-68eed60eee5d2f06408bb315a531bb6e49e9aeeb.zip
selenium-webdriver is not always required for system testing
But `NameError: uninitialized constant ActionDispatch::SystemTesting::Browser::Selenium` is pretty confused. I've little improved missing constant error to `NameError: uninitialized constant Selenium`.
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/browser.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/browser.rb b/actionpack/lib/action_dispatch/system_testing/browser.rb
index 2ffb5f67f6..c34907b6cb 100644
--- a/actionpack/lib/action_dispatch/system_testing/browser.rb
+++ b/actionpack/lib/action_dispatch/system_testing/browser.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "selenium/webdriver"
-
module ActionDispatch
module SystemTesting
class Browser # :nodoc:
@@ -35,9 +33,9 @@ module ActionDispatch
@option ||=
case type
when :chrome
- Selenium::WebDriver::Chrome::Options.new
+ ::Selenium::WebDriver::Chrome::Options.new
when :firefox
- Selenium::WebDriver::Firefox::Options.new
+ ::Selenium::WebDriver::Firefox::Options.new
end
end