Release Devise 0.5.5 bringing back Ruby 1.8.6 compatibility.

This commit is contained in:
José Valim
2009-11-19 20:55:40 -02:00
parent 3cee549a97
commit eb335234d4
4 changed files with 13 additions and 3 deletions

View File

@@ -149,6 +149,11 @@ class ControllerAuthenticableTest < ActionController::TestCase
@controller.sign_in_and_redirect(admin)
end
test 'only redirect if just a symbol is given' do
@controller.expects(:redirect_to).with(admin_root_path)
@controller.sign_in_and_redirect(:admin)
end
test 'sign out and redirect uses the configured after sign out path' do
@mock_warden.expects(:user).with(:admin).returns(true)
@mock_warden.expects(:logout).with(:admin).returns(true)