From 2426ad484651e96967c4f6959ee25481db48bc1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Gy=C3=B6rffy?= Date: Thu, 18 Jul 2019 10:20:40 +0200 Subject: [PATCH] Update README.md Requiring `rails/forward_compatible_controller_tests` in the `spec_helper.rb` will fail in the RSpec context as the Rails application is not yet initialized. Loading the gem via `rails_helper.rb` after the framework was initialized is the way to go. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 476db33..741c91d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Or install it yourself as: $ gem install rails-forward_compatible_controller_tests -At the appropriate spot in your `test_helper.rb`, `spec_helper.rb`, or similar file add the following line: +At the appropriate spot in your `test_helper.rb`, `rails_helper.rb`, or similar file add the following line: ```ruby require 'rails/forward_compatible_controller_tests'