aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_testing/driver.rb
diff options
context:
space:
mode:
authorEileen Uchitelle <eileencodes@gmail.com>2019-01-29 09:01:58 -0500
committerEileen Uchitelle <eileencodes@gmail.com>2019-01-29 11:55:30 -0500
commit1a4f61307286702205fd32b3aa62c26c21c9cce3 (patch)
treed9e6738fb7d6beb4e9a30791222076835b73f0d0 /actionpack/lib/action_dispatch/system_testing/driver.rb
parent5936bd9a201a2c1a3730d9c857f0908959505d2b (diff)
downloadrails-1a4f61307286702205fd32b3aa62c26c21c9cce3.tar.gz
rails-1a4f61307286702205fd32b3aa62c26c21c9cce3.tar.bz2
rails-1a4f61307286702205fd32b3aa62c26c21c9cce3.zip
Rename methods and update docs
This is a minor update to the named methods for the following: - s/desired_capabilities/capabilities - s/driver_options/capabilities Since they are all the same thing we should keep the name the same throughout the feature. Updated docs to match / be a little bit clearer Also updated the Gemfile for selenium-webdriver.
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing/driver.rb')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/driver.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/driver.rb b/actionpack/lib/action_dispatch/system_testing/driver.rb
index f71736833c..25a09dd918 100644
--- a/actionpack/lib/action_dispatch/system_testing/driver.rb
+++ b/actionpack/lib/action_dispatch/system_testing/driver.rb
@@ -3,12 +3,12 @@
module ActionDispatch
module SystemTesting
class Driver # :nodoc:
- def initialize(name, **options, &desired_capabilities)
+ def initialize(name, **options, &capabilities)
@name = name
@browser = Browser.new(options[:using])
@screen_size = options[:screen_size]
@options = options[:options]
- @desired_capabilities = desired_capabilities
+ @capabilities = capabilities
end
def use
@@ -23,7 +23,7 @@ module ActionDispatch
end
def register
- define_browser_capabilities(@browser.driver_options)
+ define_browser_capabilities(@browser.capabilities)
Capybara.register_driver @name do |app|
case @name
@@ -34,8 +34,8 @@ module ActionDispatch
end
end
- def define_browser_capabilities(driver_options)
- @desired_capabilities.call(driver_options) if @desired_capabilities
+ def define_browser_capabilities(capabilities)
+ @capabilities.call(capabilities) if @capabilities
end
def browser_options