This commit is contained in:
Stella Rouzi 2016-06-15 20:54:51 +03:00 committed by Henne Vogelsang
parent 419f3bb296
commit a16a3f6bfd
3 changed files with 33 additions and 3 deletions

View file

@ -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