2016-09-14 17:05:37 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module AuthTestHelper
|
|
|
|
def auth_candidate candidate
|
|
|
|
post validate_candidate_url, params: { test_id: candidate.test_hash }
|
|
|
|
end
|
|
|
|
|
2016-09-22 13:30:30 -05:00
|
|
|
def auth_user user
|
|
|
|
post admin_auth_url, params: { auth:
|
|
|
|
{ email: user.email, password: 'password' } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def auth_admin
|
|
|
|
post admin_auth_url, params: { auth:
|
|
|
|
{ email: 'alan.admin@mailinator.com', password: 'password' } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def auth_manager
|
|
|
|
post admin_auth_url, params: { auth:
|
|
|
|
{ email: 'mary.manager@mailinator.com', password: 'password' } }
|
|
|
|
end
|
|
|
|
|
2016-09-14 17:05:37 -05:00
|
|
|
def auth_recruiter
|
2016-09-22 13:30:30 -05:00
|
|
|
post admin_auth_url, params: { auth:
|
2016-09-14 17:05:37 -05:00
|
|
|
{ email: 'pdr.recruiter@mailinator.com', password: 'password' } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def auth_reviewer
|
2016-09-22 13:30:30 -05:00
|
|
|
post admin_auth_url, params: { auth:
|
2016-09-14 17:05:37 -05:00
|
|
|
{ email: 'fed.reviewer@mailinator.com', password: 'password' } }
|
|
|
|
end
|
|
|
|
end
|