mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add admin sign in helper to request specs
This commit is contained in:
parent
71228726f1
commit
a09ae8279c
1 changed files with 4 additions and 0 deletions
|
@ -28,5 +28,9 @@ module Requests
|
||||||
|
|
||||||
post '/epp/session/login', frame: login_xml
|
post '/epp/session/login', frame: login_xml
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sign_in_to_admin_area(user: FactoryGirl.create(:admin_user))
|
||||||
|
post admin_sessions_path, admin_user: { username: user.username, password: user.password }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue