From 43f4d05a18a2c2c0f57bc4b231fc2ed59590bc6b Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Thu, 5 Oct 2017 02:26:55 -0500 Subject: [PATCH] Instruct new users about rails-controller-testing [ci skip] --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 895ab032..502af458 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Use this branch at your discretion! ### RSpec -Include `shoulda-matchers` in your Gemfile: +Start by including `shoulda-matchers` in your Gemfile: ``` ruby group :test do @@ -118,6 +118,16 @@ group :test do end ``` +We typically use `rspec-rails` alongside `shoulda-matchers`, but if for some +reason you do not want to do this, and your app is on Rails 5+, you'll want to +add the `rails-controller-testing` gem as well: + +``` ruby +group :test do + gem 'rails-controller-testing' +end +``` + Now you need to tell the gem a couple of things: * Which test framework you're using