test suite refactor

This commit is contained in:
Mark Moser
2016-09-14 17:05:37 -05:00
parent 9db007489f
commit 27ef8565f3
13 changed files with 127 additions and 135 deletions

View File

@ -0,0 +1,16 @@
# frozen_string_literal: true
module AuthTestHelper
def auth_candidate candidate
post validate_candidate_url, params: { test_id: candidate.test_hash }
end
def auth_recruiter
post recruiter_auth_url, params: { auth:
{ email: 'pdr.recruiter@mailinator.com', password: 'password' } }
end
def auth_reviewer
post review_auth_url, params: { auth:
{ email: 'fed.reviewer@mailinator.com', password: 'password' } }
end
end