Browse files

Add example for including Devise::TestHelpers in all functional tests…

… in Rails

Signed-off-by: José Valim <>
  • Loading branch information...
trevorturk authored and josevalim committed Nov 20, 2009
1 parent eb33523 commit 529cd8b0a8278d87c6b190ab5a1021d2122e5abc
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.rdoc
@@ -224,6 +224,13 @@ sign_out method. Such methods have the same signature as in controllers:
sign_out :user # sign_out(scope)
sign_out @user # sign_out(resource)
+You can include the Devise Test Helpers in all of your tests by adding the
+following to the bottom of your test/test_helper.rb or spec/spec_helper.rb file:
+ class ActionController::TestCase
+ include Devise::TestHelpers
+ end
== Migrating from other solutions
Devise implements encryption strategies for Clearance, Authlogic and Restful-Authentication. To make use of it set the desired encryptor in the encryptor initializer config option. You might also need to rename your encrypted password and salt columns to match Devises's one (encrypted_password and password_salt).

0 comments on commit 529cd8b

Please sign in to comment.