Create event factory, and required association factories
This commit is contained in:
parent
a33e930111
commit
cc3ff4837f
4 changed files with 77 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
FactoryGirl.define do
|
||||
factory :room do
|
||||
name 'Example Room'
|
||||
size 4
|
||||
conference
|
||||
end
|
||||
|
||||
end
|
||||
factory :room_for_100 do
|
||||
name 'Room for 100'
|
||||
size 100
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue