Fix incorrect RackTest driver example, closes #1147
The `:browser` option is supported by Selenium, but not by RackTest, seems like this was a copy-paste error.
This commit is contained in:
parent
1273f519d5
commit
4f678b2bbd
|
@ -271,7 +271,7 @@ RackTest can be configured with a set of headers like this:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Capybara.register_driver :rack_test do |app|
|
Capybara.register_driver :rack_test do |app|
|
||||||
Capybara::RackTest::Driver.new(app, :browser => :chrome)
|
Capybara::RackTest::Driver.new(app, :headers => { 'User-Agent' => 'Capybara' })
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue