skill-assessment-app/test/test_helpers/auth_test_helper.rb

17 lines
456 B
Ruby
Raw Normal View History

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