mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Refactor Devise integration
- Use scoped users - Use the named route helpers instead of hardcoded paths
This commit is contained in:
parent
c31f507c25
commit
9684c8e59f
52 changed files with 313 additions and 280 deletions
15
test/integration/admin/logout_test.rb
Normal file
15
test/integration/admin/logout_test.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue