1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Move it to the junk drawer. :)

This commit is contained in:
José Valim 2011-04-16 13:18:28 +02:00
parent 8f3539c14f
commit 0d74c1b4f0
2 changed files with 6 additions and 9 deletions

View file

@ -209,6 +209,12 @@ class AuthenticationRedirectTest < ActionController::IntegrationTest
sign_in_as_admin
assert_equal "/admin_area/home", @request.path
end
test 'require_no_authentication should set the already_authenticated flash message' do
sign_in_as_user
visit new_user_session_path
assert_equal flash[:alert], I18n.t("devise.failure.already_authenticated")
end
end
class AuthenticationSessionTest < ActionController::IntegrationTest

View file

@ -1,9 +0,0 @@
require 'test_helper'
class FlashTest < ActionController::IntegrationTest
test 'require_no_authentication should set the already_authenticated flash message' do
sign_in_as_user
visit new_user_session_path
assert_equal flash[:alert], I18n.t("devise.failure.already_authenticated")
end
end