diff options
author | eileencodes <eileencodes@gmail.com> | 2016-10-01 11:17:43 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 15:07:33 -0500 |
commit | f482eddbeff9fe3d0dc6cdaa9a4b53df839f667c (patch) | |
tree | d9b70ef78d4e1ee3e67430dd6e7cfc8e5a2bec4d /actionpack/test/system_testing/driver_adapter_test.rb | |
parent | b44320254167152383b1fa8792cb17847a51fb49 (diff) | |
download | rails-f482eddbeff9fe3d0dc6cdaa9a4b53df839f667c.tar.gz rails-f482eddbeff9fe3d0dc6cdaa9a4b53df839f667c.tar.bz2 rails-f482eddbeff9fe3d0dc6cdaa9a4b53df839f667c.zip |
Reconfigure how the drivers work
This removes the useless Rack Test Driver that Rails was providing and
moves to a shim like approach for default adapters.
If someone wants to use one of the default Capybara Drivers then we will
initialize a new `CapybaraDriver` that simply sets the default driver.
Rails though is much more opinionated than Capybara and to make system
testing a "works out of the box" framework in Rails we have the
`RailsSeleniumDriver`. This driver sets defaults that Rails deems
important for selenium testing. The purpose of this is to simply add a
test and it just works.
Diffstat (limited to 'actionpack/test/system_testing/driver_adapter_test.rb')
-rw-r--r-- | actionpack/test/system_testing/driver_adapter_test.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/test/system_testing/driver_adapter_test.rb b/actionpack/test/system_testing/driver_adapter_test.rb index bfbeaa63a2..220a755bd3 100644 --- a/actionpack/test/system_testing/driver_adapter_test.rb +++ b/actionpack/test/system_testing/driver_adapter_test.rb @@ -7,13 +7,7 @@ class DriverAdapterTest < ActiveSupport::TestCase end assert_nothing_raised do - Rails::SystemTestCase.driver = :capybara_selenium_driver - end - end - - test 'settings can only be used for the appropriate adapter' do - assert_raises(ArgumentError) do - Rails::SystemTestCase.driver = SystemTesting::DriverAdapters::CapybaraRackTestDriver.new(something: 'test') + Rails::SystemTestCase.driver = :rack_test end end end |