internetee-registry/test/integration/admin/logout_test.rb
Artur Beljajev 9684c8e59f Refactor Devise integration
- Use scoped users
- Use the named route helpers instead of hardcoded paths
2018-06-20 12:21:22 +03:00

15 lines
No EOL
298 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 'Log out'
assert_text 'Signed out successfully'
assert_current_path new_admin_user_session_path
end
end