Add installation instructions for Rails 5.0
This commit is contained in:
parent
d3145e9119
commit
6eb920a67c
10
README.md
10
README.md
|
@ -117,12 +117,22 @@ complex, and error-prone.
|
||||||
|
|
||||||
Include `shoulda-matchers` in your Gemfile:
|
Include `shoulda-matchers` in your Gemfile:
|
||||||
|
|
||||||
|
For Rails 4.x:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
group :test do
|
group :test do
|
||||||
gem 'shoulda-matchers', '~> 3.1'
|
gem 'shoulda-matchers', '~> 3.1'
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For Rails 5.0:
|
||||||
|
|
||||||
|
``` ruby
|
||||||
|
group :test do
|
||||||
|
gem 'shoulda-matchers', git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5'
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
Now you need to tell the gem a couple of things:
|
Now you need to tell the gem a couple of things:
|
||||||
|
|
||||||
* Which test framework you're using
|
* Which test framework you're using
|
||||||
|
|
Loading…
Reference in New Issue