Merge pull request #3542 from lboix/patch-1

Adding link to wiki + include clarification
This commit is contained in:
José Valim
2015-05-23 22:23:09 +02:00

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