Update readme to reflect Rails 3 installation instructions

This commit is contained in:
Joshua Clayton 2010-06-22 16:30:54 -04:00
parent e2ae4a2596
commit 5db8e5beec
1 changed files with 20 additions and 0 deletions

View File

@ -133,6 +133,26 @@ configured:
You should not need to require anything besides the top-level shoulda library.
= Rails 3 Installation (RSpec)
With Rails 3 and Bundler, requiring Shoulda is as easy as adding it to your Gemfile:
group :test do
gem "shoulda"
gem "rspec-rails", "2.0.0.beta.12"
end
Require shoulda from your spec/spec_helper.rb file, before Rspec is
configured, and tell Rspec to include the Shoulda matchers.
require "shoulda"
Rspec.configure do |config|
config.include Shoulda::ActionController::Matchers
config.include Shoulda::ActiveRecord::Matchers
config.include Shoulda::ActionMailer::Matchers
# ...
end
= Credits
Shoulda is maintained and funded by {thougthbot}[http://thoughtbot.com/community]