Adding link to wiki + include clarification

Like discussed at the bottom of this ticket : https://github.com/plataformatec/devise/issues/1029
This commit is contained in:
Lucien Boix
2015-03-29 19:05:24 -04:00
parent 79c6f47ad3
commit e5400bc709

View File

@@ -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`: