diff --git a/test/integration/authenticatable_test.rb b/test/integration/authenticatable_test.rb index d88c4e2c..12c6a774 100644 --- a/test/integration/authenticatable_test.rb +++ b/test/integration/authenticatable_test.rb @@ -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 diff --git a/test/integration/flash_test.rb b/test/integration/flash_test.rb deleted file mode 100644 index f9529a69..00000000 --- a/test/integration/flash_test.rb +++ /dev/null @@ -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