[test]Add test for ConferenceHelper#get_happening_next_events_schedules

This commit is contained in:
Jimmy 2021-04-19 13:33:00 +08:00
parent b32f2416da
commit 1fd1d395d5
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
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