add in manager role
This commit is contained in:
parent
1b612feb16
commit
3c45527a04
@ -19,6 +19,7 @@ module ApplicationHelper
|
|||||||
options_for_select([
|
options_for_select([
|
||||||
%w(Reviewer reviewer),
|
%w(Reviewer reviewer),
|
||||||
%w(Recruiter recruiter),
|
%w(Recruiter recruiter),
|
||||||
|
%w(Manager manager),
|
||||||
%w(Admin admin)
|
%w(Admin admin)
|
||||||
], disabled: "-", selected: (val.blank? ? '' : val))
|
], disabled: "-", selected: (val.blank? ? '' : val))
|
||||||
end
|
end
|
||||||
|
6
test/fixtures/users.yml
vendored
6
test/fixtures/users.yml
vendored
@ -18,6 +18,12 @@ reviewer2:
|
|||||||
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
||||||
role: reviewer
|
role: reviewer
|
||||||
|
|
||||||
|
manager:
|
||||||
|
name: Mary Manager
|
||||||
|
email: mary.manager@mailinator.com
|
||||||
|
password_digest: <%= BCrypt::Password.create("password", cost: 4) %>
|
||||||
|
role: manager
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
name: Alan Admin
|
name: Alan Admin
|
||||||
email: alan.admin@mailinator.com
|
email: alan.admin@mailinator.com
|
||||||
|
Loading…
Reference in New Issue
Block a user