We are PDA
This commit is contained in:
parent
47054265c8
commit
e009fc3330
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
User.create(
|
User.create(
|
||||||
name: 'admin',
|
name: 'admin',
|
||||||
email: 'pdr.admin@mailinator.com',
|
email: 'pda.admin@mailinator.com',
|
||||||
password_digest: BCrypt::Password.create("this is the admin password"),
|
password_digest: BCrypt::Password.create("this is the admin password"),
|
||||||
role: 'admin'
|
role: 'admin'
|
||||||
)
|
)
|
||||||
|
|
||||||
Quiz.create(
|
Quiz.create(
|
||||||
name: 'PDR Standard FED Screening',
|
name: 'PDA Standard FED Screening',
|
||||||
unit: 'FED',
|
unit: 'FED',
|
||||||
dept: 'PDR'
|
dept: 'PDA'
|
||||||
)
|
)
|
||||||
|
@ -47,7 +47,7 @@ module Admin
|
|||||||
|
|
||||||
test "recruiter should auth to dashboard" do
|
test "recruiter should auth to dashboard" do
|
||||||
post admin_auth_url, params: { auth:
|
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
|
assert_redirected_to admin_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
test/fixtures/users.yml
vendored
2
test/fixtures/users.yml
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
recruiter:
|
recruiter:
|
||||||
name: Sam Recruiter
|
name: Sam Recruiter
|
||||||
email: pdr.recruiter@mailinator.com
|
email: pda.recruiter@mailinator.com
|
||||||
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
||||||
role: recruiter
|
role: recruiter
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ module AuthTestHelper
|
|||||||
|
|
||||||
def auth_recruiter
|
def auth_recruiter
|
||||||
post admin_auth_url, params: { auth:
|
post admin_auth_url, params: { auth:
|
||||||
{ email: 'pdr.recruiter@mailinator.com', password: 'password' } }
|
{ email: 'pda.recruiter@mailinator.com', password: 'password' } }
|
||||||
end
|
end
|
||||||
|
|
||||||
def auth_reviewer
|
def auth_reviewer
|
||||||
|
Loading…
Reference in New Issue
Block a user