test suite refactor

This commit is contained in:
Mark Moser committed 2016-09-14 17:05:37 -05:00
1 parent 9db007489f
commit 27ef8565f3
13 files changed
+127 -135

No files matched your search

+16
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