From 0d74c1b4f07295bc76516b8be1e576919acc7092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 16 Apr 2011 13:18:28 +0200 Subject: [PATCH] Move it to the junk drawer. :) --- test/integration/authenticatable_test.rb | 6 ++++++ test/integration/flash_test.rb | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 test/integration/flash_test.rb 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