From a5623e7a6a683edfbc264c87b9ac2c60a3f22531 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Wed, 16 Apr 2014 00:47:52 -0600 Subject: [PATCH] Add instructions for Spring users to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 0a8f70b3..8e8a1796 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,20 @@ group :test do 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 shoulda-matchers was originally a component of