diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-03-17 11:39:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 11:39:13 -0400 |
commit | 7413be0d31ec7eacc6f93e26546cb02ac6db73ca (patch) | |
tree | a824d9b88b89cf303fdb33e23768c4404f645416 /actionpack/test | |
parent | 3666962dd031b2d0e028f4fc6b52e0f19d573798 (diff) | |
parent | ec99107a2982236c726699cbbefc8839de278b93 (diff) | |
download | rails-7413be0d31ec7eacc6f93e26546cb02ac6db73ca.tar.gz rails-7413be0d31ec7eacc6f93e26546cb02ac6db73ca.tar.bz2 rails-7413be0d31ec7eacc6f93e26546cb02ac6db73ca.zip |
Merge pull request #28341 from mtsmfm/pass-options-to-driven-by
Pass options to `driven_by`
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/system_testing/driver_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/system_testing/driver_test.rb b/actionpack/test/dispatch/system_testing/driver_test.rb index 8f8777b19f..814e1d707b 100644 --- a/actionpack/test/dispatch/system_testing/driver_test.rb +++ b/actionpack/test/dispatch/system_testing/driver_test.rb @@ -8,10 +8,11 @@ class DriverTest < ActiveSupport::TestCase end test "initializing the driver with a browser" do - driver = ActionDispatch::SystemTesting::Driver.new(:selenium, using: :chrome, screen_size: [1400, 1400]) + driver = ActionDispatch::SystemTesting::Driver.new(:selenium, using: :chrome, screen_size: [1400, 1400], options: { url: "http://example.com/wd/hub" }) assert_equal :selenium, driver.instance_variable_get(:@name) assert_equal :chrome, driver.instance_variable_get(:@browser) assert_equal [1400, 1400], driver.instance_variable_get(:@screen_size) + assert_equal ({ url: "http://example.com/wd/hub" }), driver.instance_variable_get(:@options) end test "selenium? returns false if driver is poltergeist" do |