Add instructions for Spring users to README
This commit is contained in:
parent
a21426c2d6
commit
a5623e7a6a
14
README.md
14
README.md
|
@ -18,6 +18,20 @@ group :test do
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that if you're using a Rails preloader like Spring, you'll need to manually
|
||||||
|
require shoulda-matchers in your spec_helper after you require RSpec:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
# Gemfile
|
||||||
|
group :test do
|
||||||
|
gem 'shoulda-matchers', require: false
|
||||||
|
end
|
||||||
|
|
||||||
|
# spec_helper
|
||||||
|
require 'rspec/rails'
|
||||||
|
require 'shoulda/matchers'
|
||||||
|
```
|
||||||
|
|
||||||
### Test::Unit
|
### Test::Unit
|
||||||
|
|
||||||
shoulda-matchers was originally a component of
|
shoulda-matchers was originally a component of
|
||||||
|
|
Loading…
Reference in New Issue