mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +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
|
@ -1,7 +1,7 @@
|
|||
module Features
|
||||
module SessionHelpers
|
||||
def sign_in_to_admin_area(user: create(:admin_user))
|
||||
visit admin_login_url
|
||||
visit new_admin_user_session_url
|
||||
|
||||
fill_in 'admin_user[username]', with: user.username
|
||||
fill_in 'admin_user[password]', with: user.password
|
||||
|
@ -10,7 +10,7 @@ module Features
|
|||
end
|
||||
|
||||
def sign_in_to_registrar_area(user: create(:api_user))
|
||||
visit registrar_login_url
|
||||
visit new_registrar_user_session_url
|
||||
|
||||
fill_in 'depp_user_tag', with: user.username
|
||||
fill_in 'depp_user_password', with: user.password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue