From cb622e99d84adc750398efa2fa0bb36c5db87dbc Mon Sep 17 00:00:00 2001 From: Jack Dempsey Date: Sat, 16 Apr 2011 03:03:15 +0800 Subject: [PATCH] create new integration test file for flash related tests --- test/integration/flash_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/integration/flash_test.rb diff --git a/test/integration/flash_test.rb b/test/integration/flash_test.rb new file mode 100644 index 00000000..f9529a69 --- /dev/null +++ b/test/integration/flash_test.rb @@ -0,0 +1,9 @@ +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