diff --git a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb index f8f9fc9a242c..40717f9bb05f 100644 --- a/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb +++ b/modules/meeting/spec/requests/recurring_meetings/recurring_meetings_show_spec.rb @@ -130,7 +130,10 @@ context "with no scheduled meetings" do it "shows the next five occurrences" do - get recurring_meeting_path(recurring_meeting) + # Assuming we're past today's occurrence + Timecop.freeze(Time.zone.today + 11.hours) do + get recurring_meeting_path(recurring_meeting) + end (1..5).each do |date| expect(page).to have_text format_time(Time.zone.today + date.days + 10.hours)