We are PDA
This commit is contained in:
parent
47054265c8
commit
e009fc3330
@ -8,13 +8,13 @@
|
||||
|
||||
User.create(
|
||||
name: 'admin',
|
||||
email: 'pdr.admin@mailinator.com',
|
||||
email: 'pda.admin@mailinator.com',
|
||||
password_digest: BCrypt::Password.create("this is the admin password"),
|
||||
role: 'admin'
|
||||
)
|
||||
|
||||
Quiz.create(
|
||||
name: 'PDR Standard FED Screening',
|
||||
name: 'PDA Standard FED Screening',
|
||||
unit: 'FED',
|
||||
dept: 'PDR'
|
||||
dept: 'PDA'
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user