1
0
Fork 0
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:
Pat Allan 2010-07-27 20:39:32 +08:00 committed by José Valim
parent fd35b36c4a
commit 0a3099663e

View file

@ -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).