Merge pull request #1630 from Nitrodist/add-more-information-regarding-rspec

Update README with more RSpec and Capybara integration information
This commit is contained in:
Thomas Walpole 2016-01-14 13:45:13 -08:00
commit 03fedf88ec
1 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,11 @@ Load RSpec 2.x support by adding the following line (typically to your
require 'capybara/rspec'
```
If you are using Rails, put your Capybara specs in `spec/features`.
If you are using Rails, put your Capybara specs in `spec/features` (only works
if [you have it configured in
rpsec](https://www.relishapp.com/rspec/rspec-rails/docs/upgrade#file-type-inference-disabled))
and if you have your Capybara specs in a different directory, then tag the
example groups with `:type => :feature`.
If you are not using Rails, tag all the example groups in which you want to use
Capybara with `:type => :feature`.