Create event factory, and required association factories

This commit is contained in:
James Mason 2014-05-08 14:52:33 -07:00
parent a33e930111
commit cc3ff4837f
4 changed files with 77 additions and 2 deletions

View file

@ -0,0 +1,13 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :event_person do
person
Hash[EventPerson::ROLES].values.each do |role|
factory role do
event_role role
end
end
end
end