mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Update readme to reflect Rails 3 installation instructions
This commit is contained in:
parent
e2ae4a2596
commit
5db8e5beec
1 changed files with 20 additions and 0 deletions
20
README.rdoc
20
README.rdoc
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue