mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Point system spec/test users to go read the relevant external docs
This commit is contained in:
parent
d2b1ba32f6
commit
ed3c947130
1 changed files with 4 additions and 0 deletions
|
@ -151,6 +151,8 @@ RSpec](https://relishapp.com/rspec/rspec-rails/v/4-0/docs/directory-structure))
|
|||
and if you have your Capybara specs in a different directory, then tag the
|
||||
example groups with `type: :feature` or `type: :system` depending on which type of test you're writing.
|
||||
|
||||
If you are using Rails system specs please see [their documentation](https://relishapp.com/rspec/rspec-rails/docs/system-specs/system-spec#system-specs-driven-by-selenium-chrome-headless) for selecting the driver you wish to use.
|
||||
|
||||
If you are not using Rails, tag all the example groups in which you want to use
|
||||
Capybara with `type: :feature`.
|
||||
|
||||
|
@ -258,6 +260,8 @@ end
|
|||
|
||||
## <a name="using-capybara-with-minitest"></a>Using Capybara with Minitest
|
||||
|
||||
* If you are using Rails system tests please see their documentation for information on selecting the driver you wish to use.
|
||||
|
||||
* If you are using Rails, but not using Rails system tests, add the following code in your `test_helper.rb`
|
||||
file to make Capybara available in all test cases deriving from
|
||||
`ActionDispatch::IntegrationTest`:
|
||||
|
|
Loading…
Reference in a new issue