1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Dispel confusion around rails_helper in README

[ci skip]
This commit is contained in:
Elliot Winkler 2016-01-04 11:29:14 -07:00
parent fc010175c7
commit 80b791d34b

View file

@ -172,8 +172,8 @@ end
Shoulda Matchers was originally a component of [Shoulda][shoulda], a gem that Shoulda Matchers was originally a component of [Shoulda][shoulda], a gem that
also provides `should` and `context` syntax via also provides `should` and `context` syntax via
[`shoulda-context`][shoulda-context]. For this reason you'll want to include this [`shoulda-context`][shoulda-context]. For this reason you'll want to include
gem in your Gemfile instead: this gem in your Gemfile instead:
```ruby ```ruby
group :test do group :test do
@ -200,7 +200,8 @@ Before you can use Shoulda Matchers, you'll need to tell it a couple of things:
* Which portion of the matchers you want to use * Which portion of the matchers you want to use
You can supply this information by using a configuration block. Place the You can supply this information by using a configuration block. Place the
following in your test or spec helper: following in `rails_helper.rb` (if you're using RSpec) or `test_helper.rb` (if
you're using Minitest):
``` ruby ``` ruby
Shoulda::Matchers.configure do |config| Shoulda::Matchers.configure do |config|
@ -294,7 +295,7 @@ pull request.
## Compatibility ## Compatibility
Shoulda Matchers is tested and supported against Rails 4.x, RSpec 3.x, Minitest Shoulda Matchers is tested and supported against Rails 4.x, RSpec 3.x, Minitest
5, and Ruby 2.x. 5, Minitest 4, and Ruby 2.x.
## Versioning ## Versioning
@ -303,7 +304,7 @@ Shoulda Matchers follows Semantic Versioning 2.0 as defined at
## License ## License
Shoulda Matchers is copyright © 2006-2015 Shoulda Matchers is copyright © 2006-2016
[thoughtbot, inc](https://thoughtbot.com/). It is free software, [thoughtbot, inc](https://thoughtbot.com/). It is free software,
and may be redistributed under the terms specified in the and may be redistributed under the terms specified in the
[MIT-LICENSE](MIT-LICENSE) file. [MIT-LICENSE](MIT-LICENSE) file.