User/Person models merge
This commit is contained in:
parent
66b84e3660
commit
23bf55b66c
80 changed files with 1064 additions and 1221 deletions
13
spec/factories/event_users.rb
Normal file
13
spec/factories/event_users.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :event_user do
|
||||
user
|
||||
|
||||
Hash[EventUser::ROLES].values.each do |role|
|
||||
factory role do
|
||||
event_role role
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue