add test
This commit is contained in:
parent
419f3bb296
commit
a16a3f6bfd
3 changed files with 33 additions and 3 deletions
|
|
@ -29,6 +29,13 @@ FactoryGirl.define do
|
|||
event.room = build(:room, venue: venue)
|
||||
event.comment_threads << build(:comment, commentable: event)
|
||||
end
|
||||
|
||||
factory :event_scheduled do
|
||||
after(:build) do |event|
|
||||
event.state = 'confirmed'
|
||||
event.start_time = event.program.conference.start_date.to_time
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue