diff options
author | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-03-08 21:17:44 +0900 |
---|---|---|
committer | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-03-13 19:59:01 +0900 |
commit | ec99107a2982236c726699cbbefc8839de278b93 (patch) | |
tree | ab859b4fb4bf8a9ff1b2b6aa10e3ff71a6c8a814 /actionpack/test/controller/parameters | |
parent | 11f10840936a323eda1a9eab02521eff9bdccedb (diff) | |
download | rails-ec99107a2982236c726699cbbefc8839de278b93.tar.gz rails-ec99107a2982236c726699cbbefc8839de278b93.tar.bz2 rails-ec99107a2982236c726699cbbefc8839de278b93.zip |
Pass options to `driven_by`
Capybara drivers can handle some options such like `url`.
### before
```
# test/test_helper.rb
Capybara.register_driver :remote_chrome do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome, url: "http://example.com/wd/hub")
end
# test/application_system_test_case.rb
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :remote_chrome
end
```
### after
```
# test/application_system_test_case.rb
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: {url: "http://chrome:4444/wd/hub"}
end
```
Diffstat (limited to 'actionpack/test/controller/parameters')
0 files changed, 0 insertions, 0 deletions