aboutsummaryrefslogtreecommitdiffstats
path: root/actionsystemtest/lib/action_system_test/driver_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionsystemtest/lib/action_system_test/driver_adapter.rb')
-rw-r--r--actionsystemtest/lib/action_system_test/driver_adapter.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/actionsystemtest/lib/action_system_test/driver_adapter.rb b/actionsystemtest/lib/action_system_test/driver_adapter.rb
index 892edd2d32..3a0ab0763a 100644
--- a/actionsystemtest/lib/action_system_test/driver_adapter.rb
+++ b/actionsystemtest/lib/action_system_test/driver_adapter.rb
@@ -2,22 +2,24 @@ require "action_system_test/driver_adapters"
module ActionSystemTest
# The <tt>ActionSystemTest::DriverAdapter</tt> module is used to load the driver
- # set in your Rails' test configuration file.
+ # set in the +system_test_helper+ file generated with your application.
#
# The default driver adapter is the +:rails_selenium_driver+.
module DriverAdapter
extend ActiveSupport::Concern
module ClassMethods
- # Returns the current driver that is set. If no driver is set in the
- # Rails' configuration file then +:rails_selenium_driver+ will be
- # initialized.
+ # Returns the current driver that is set in the <tt>ActionSystemTestCase</tt>
+ # class generated with your Rails application. If no driver is set
+ # +:rails_selenium_driver+ will be initialized.
def driver
@driver ||= DriverAdapters.lookup(DEFAULT_DRIVER)
end
# Specify the adapter and settings for the system test driver set in the
# Rails' configuration file.
+ #
+ # When set, the driver will be initialized.
def driver=(driver)
@driver = DriverAdapters.lookup(driver)
@driver.call