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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Ensure all agenda items get destroyed
Oliver Günther4c7c0e4008cb
diff --git a/modules/meeting/app/models/meeting.rb b/modules/meeting/app/models/meeting.rbindex 1d1b77d3c44..b0a52b33906 100644--- a/modules/meeting/app/models/meeting.rb+++ b/modules/meeting/app/models/meeting.rb@@ -46,10 +46,8 @@ class Meeting < ApplicationRecordclass_name: "MeetingParticipant",after_add: :send_participant_added_mail- has_many :sections, dependent: :destroy, class_name: "MeetingSection"- has_many :agenda_items,- class_name: "MeetingAgendaItem",- inverse_of: :meeting+ has_many :agenda_items, dependent: :destroy, class_name: "MeetingAgendaItem", inverse_of: :meeting+ has_many :sections, dependent: :delete_all, class_name: "MeetingSection"accepts_nested_attributes_for :agenda_itemsdiff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rbindex 8945eb9e748..80e4c362586 100644--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_move_to_next_spec.rb@@ -96,6 +96,8 @@ RSpec.describe "Recurring meetings move to next meeting", :js domeeting_page.select_action(agenda_item, "Move to next meeting")end+ expect_and_dismiss_flash(message: "Agenda item moved to the next meeting")+meeting_page.expect_no_agenda_item(title: "Test notes")endend