[test]Add test for ConferenceHelper#get_happening_next_events_schedules

This commit is contained in:
Jimmy 2021-04-19 13:33:00 +08:00 committed by CactusPuppy
parent 612af49ca0
commit 648f3bacb5
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 35 additions and 1 deletions

View file

@ -185,7 +185,7 @@ describe EventSchedule do
create(:event, program: program, state: 'confirmed')
end
let!(:event_schedule3) { create(:event_schedule, event: scheduled_event3, schedule: selected_schedule, start_time: (Time.now.in_time_zone(conference2.timezone) - 1.hour).strftime('%a, %d %b %Y %H:%M:%S')) }
it 'returns true if the event is happening in the future' do
expect(event_schedule1.happening_later?).to be true
expect(event_schedule2.happening_later?).to be true