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

create new integration test file for flash related tests

This commit is contained in:
Jack Dempsey 2011-04-16 03:03:15 +08:00 committed by José Valim
parent 567d59e48a
commit cb622e99d8

View file

@ -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