some basic tests for admin/users controller, fixed bug in admin/users controller for displaying users
Fixes by hounci violations
This commit is contained in:
parent
7573a19240
commit
f84f3b97a7
7 changed files with 64 additions and 6 deletions
16
spec/factories/roles.rb
Normal file
16
spec/factories/roles.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FactoryGirl.define do
|
||||
factory :role do
|
||||
|
||||
factory :admin_role do
|
||||
name 'Admin'
|
||||
end
|
||||
|
||||
factory :organizer_role do
|
||||
name 'Organizer'
|
||||
end
|
||||
|
||||
factory :participant_role do
|
||||
name 'Participant'
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue