mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
create new integration test file for flash related tests
This commit is contained in:
9
test/integration/flash_test.rb
Normal file
9
test/integration/flash_test.rb
Normal 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
|
||||
Reference in New Issue
Block a user