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:
parent
567d59e48a
commit
cb622e99d8
1 changed files with 9 additions and 0 deletions
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
|
Loading…
Add table
Reference in a new issue