mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
15 lines
No EOL
299 B
Ruby
15 lines
No EOL
299 B
Ruby
require 'test_helper'
|
|
|
|
class AdminAreaLogoutTest < ActionDispatch::IntegrationTest
|
|
def setup
|
|
sign_in users(:admin)
|
|
end
|
|
|
|
def test_logout
|
|
visit admin_root_url
|
|
click_on 'Sign out'
|
|
|
|
assert_text 'Signed out successfully'
|
|
assert_current_path new_admin_user_session_path
|
|
end
|
|
end |