Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix show spec before 10AM

Oliver Günther36e60e12c160
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 f8f9fc9a242..40717f9bb05 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 @@ RSpec.describe "Recurring meetings show",
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)