We are PDA
This commit is contained in:
@ -47,7 +47,7 @@ module Admin
|
||||
|
||||
test "recruiter should auth to dashboard" do
|
||||
post admin_auth_url, params: { auth:
|
||||
{ email: 'pdr.recruiter@mailinator.com', password: 'password' } }
|
||||
{ email: 'pda.recruiter@mailinator.com', password: 'password' } }
|
||||
assert_redirected_to admin_url
|
||||
end
|
||||
|
||||
|
2
test/fixtures/users.yml
vendored
2
test/fixtures/users.yml
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
recruiter:
|
||||
name: Sam Recruiter
|
||||
email: pdr.recruiter@mailinator.com
|
||||
email: pda.recruiter@mailinator.com
|
||||
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
||||
role: recruiter
|
||||
|
||||
|
@ -21,7 +21,7 @@ module AuthTestHelper
|
||||
|
||||
def auth_recruiter
|
||||
post admin_auth_url, params: { auth:
|
||||
{ email: 'pdr.recruiter@mailinator.com', password: 'password' } }
|
||||
{ email: 'pda.recruiter@mailinator.com', password: 'password' } }
|
||||
end
|
||||
|
||||
def auth_reviewer
|
||||
|
Reference in New Issue
Block a user