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

Add specs to not include invisible meetings

Klaus Zanders316b0377ce89
diff --git a/modules/meeting/spec/services/all_meetings/ical_service_spec.rb b/modules/meeting/spec/services/all_meetings/ical_service_spec.rb
index 40c5aacf178..655a1873ed9 100644
--- a/modules/meeting/spec/services/all_meetings/ical_service_spec.rb
+++ b/modules/meeting/spec/services/all_meetings/ical_service_spec.rb
@@ -98,6 +98,16 @@ RSpec.describe AllMeetings::ICalService, type: :model do # rubocop:disable RSpec
duration: 1.0)
end
+ let!(:invisible_meeting) do
+ create(:meeting,
+ author: user, # creatd by the user but in a project the user cannot see
+ project: create(:project, name: "Invisible Project"),
+ title: "Important meeting",
+ location: "https://example.com/meet/important-meeting",
+ start_time: relevant_time + 1.week,
+ duration: 1.0)
+ end
+
context "without historic meetings" do
let(:include_historic) { false }