mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Let's just include the test helpers for controller specs, not all specs.
This commit is contained in:
parent
fd35b36c4a
commit
0a3099663e
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ You can include the Devise Test Helpers in all of your tests by adding the follo
|
|||
If you're using RSpec and want the helpers automatically included within all +describe+ blocks, add a file called spec/support/devise.rb with the following contents:
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.include Devise::TestHelpers
|
||||
config.include Devise::TestHelpers, :type => :controller
|
||||
end
|
||||
|
||||
Do not use such helpers for integration tests such as Cucumber or Webrat. Instead, fill in the form or explicitly set the user in session. For more tips, check the wiki (http://wiki.github.com/plataformatec/devise).
|
||||
|
|
Loading…
Reference in a new issue