Add tests for program event on specified date

This commit is contained in:
GV 2017-03-18 01:41:14 -03:00
parent 89af26bf18
commit 16984aa185
2 changed files with 35 additions and 0 deletions

View file

@ -2,6 +2,7 @@
FactoryGirl.define do
factory :event_schedule do
start_time DateTime.parse("#{Date.today} 10:00").utc
event
after(:build) do |event_schedule|
program = event_schedule.event.program