From e5400bc709ab8f6532717de0e17726593e28e19a Mon Sep 17 00:00:00 2001 From: Lucien Boix Date: Sun, 29 Mar 2015 19:05:24 -0400 Subject: [PATCH] Adding link to wiki + include clarification Like discussed at the bottom of this ticket : https://github.com/plataformatec/devise/issues/1029 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 51d1d900..a4804de8 100644 --- a/README.md +++ b/README.md @@ -418,6 +418,8 @@ RSpec.configure do |config| end ``` +Just be sure that this inclusion is made *after* the `require 'rspec/rails'` directive. + Now you are ready to use the `sign_in` and `sign_out` methods. Such methods have the same signature as in controllers: ```ruby @@ -439,6 +441,10 @@ There are two things that are important to keep in mind: get :new ``` +You can read more about testing your Rails 3 - Rails 4 controllers with RSpec in the wiki: + +* https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-%28and-RSpec%29 + ### OmniAuth Devise comes with OmniAuth support out of the box to authenticate with other providers. To use it, simply specify your OmniAuth configuration in `config/initializers/devise.rb`: