1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Update README with more RSpec and Capybara integration information

Points out specifically what RSpec configuration option is being
referred to when '`spec/features`' is being suggested as the place to
put capybara specs. Alternative instructions for Rails applications has
also been added.
This commit is contained in:
Mark Campbell 2015-12-26 11:02:38 -05:00
parent 957c35f580
commit 9d2f291528

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`.