Better installation instructions for rspec-rails. Fixes #117.

This commit is contained in:
Gabe Berke-Williams 2012-06-08 09:54:08 -07:00
parent 8995f60803
commit 2185ea35c9
1 changed files with 6 additions and 1 deletions

View File

@ -67,10 +67,15 @@ Matchers to test common patterns:
In Rails 3 and Bundler, add the following to your Gemfile:
group :test do
gem "rspec-rails"
gem "shoulda-matchers"
end
# rspec-rails needs to be in the development group so that Rails generators
# work.
group :development, :test do
gem "rspec-rails"
end
Shoulda will automatically include matchers into the appropriate example groups.
## Credits