mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Clarify previous clarification to README.md
This commit is contained in:
parent
37b7e9b850
commit
42fac75e8e
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ sign_out @user # sign_out(resource)
|
|||
|
||||
There are two things that are important to keep in mind:
|
||||
|
||||
1. `Devise::TestHelpers` is not going to work for integration tests driven by Capybara or Webrat. It is meant to be used with functional tests only. Instead, fill in the form or explicitly set the user in session;
|
||||
1. These helpers are not going to work for integration tests driven by Capybara or Webrat. They are meant to be used with functional tests only. It is undesirable even to include `Devise::TestHelpers` during integration tests. Instead, fill in the form or explicitly set the user in session;
|
||||
|
||||
2. If you are testing Devise internal controllers or a controller that inherits from Devise's, you need to tell Devise which mapping should be used before a request. This is necessary because Devise gets this information from the router, but since functional tests do not pass through the router, it needs to be stated explicitly. For example, if you are testing the user scope, simply use:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue