We are PDA

This commit is contained in:
Mark Moser 2017-05-04 13:01:02 -05:00
parent 47054265c8
commit e009fc3330
4 changed files with 6 additions and 6 deletions

View File

@ -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'
) )

View File

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

View File

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

View File

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