From 9d2f291528f817e0f24767a721c93f22343d2691 Mon Sep 17 00:00:00 2001 From: Mark Campbell Date: Sat, 26 Dec 2015 11:02:38 -0500 Subject: [PATCH] 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. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 108d8f21..f647bf0d 100644 --- a/README.md +++ b/README.md @@ -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`.