internetee-registry/test/integration/registrar/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
318 B
Ruby

require 'test_helper'
class RegistrarAreaLogoutTest < ActionDispatch::IntegrationTest
def setup
sign_in users(:api_bestnames)
end
def test_logout
visit registrar_root_url
click_on 'Log out'
assert_text 'Signed out successfully'
assert_current_path new_registrar_user_session_path
end
end