diff options
author | eileencodes <eileencodes@gmail.com> | 2016-08-07 09:01:16 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 15:07:31 -0500 |
commit | 0dc63281da1c7075ce63d8dba62e4230d72bfc2a (patch) | |
tree | fb849a6ad7e598ad88bc3586572745149a6eb5af /actionpack/lib/system_testing/driver_adapter.rb | |
parent | 0056c9b977a4cd61334909ff950de9358ec84d74 (diff) | |
download | rails-0dc63281da1c7075ce63d8dba62e4230d72bfc2a.tar.gz rails-0dc63281da1c7075ce63d8dba62e4230d72bfc2a.tar.bz2 rails-0dc63281da1c7075ce63d8dba62e4230d72bfc2a.zip |
Add configuration option for driver adapter
This allows any application to change the driver adapter based on the
config settings in the test env.
Diffstat (limited to 'actionpack/lib/system_testing/driver_adapter.rb')
-rw-r--r-- | actionpack/lib/system_testing/driver_adapter.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/system_testing/driver_adapter.rb b/actionpack/lib/system_testing/driver_adapter.rb index 70c4396323..6d94582395 100644 --- a/actionpack/lib/system_testing/driver_adapter.rb +++ b/actionpack/lib/system_testing/driver_adapter.rb @@ -4,11 +4,9 @@ module SystemTesting module DriverAdapter extend ActiveSupport::Concern - included do - self.driver_adapter = :capybara_rack_test_driver - end - module ClassMethods + attr_accessor :driver_adapter + def driver_adapter=(driver_name_or_class) driver = DriverAdapters.lookup(driver_name_or_class).new driver.call |