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 expected validation messages

Oliver Günther0a5c79f44d6c
diff --git a/modules/meeting/spec/contracts/meeting_agenda_items/create_contract_spec.rb b/modules/meeting/spec/contracts/meeting_agenda_items/create_contract_spec.rb
index 7a2b30e18ed..79ea61d18ff 100644
--- a/modules/meeting/spec/contracts/meeting_agenda_items/create_contract_spec.rb
+++ b/modules/meeting/spec/contracts/meeting_agenda_items/create_contract_spec.rb
@@ -51,7 +51,7 @@ RSpec.describe MeetingAgendaItems::CreateContract do
meeting.update_column(:state, :closed)
end
- it_behaves_like 'contract is invalid', base: I18n.t(:text_meeting_not_editable_anymore)
+ it_behaves_like 'contract is invalid', base: I18n.t(:text_agenda_item_not_editable_anymore)
end
context 'when :meeting is not present anymore' do
diff --git a/modules/meeting/spec/contracts/meeting_agenda_items/delete_contract_spec.rb b/modules/meeting/spec/contracts/meeting_agenda_items/delete_contract_spec.rb
index 4dcef8b3a6f..b5d133639b6 100644
--- a/modules/meeting/spec/contracts/meeting_agenda_items/delete_contract_spec.rb
+++ b/modules/meeting/spec/contracts/meeting_agenda_items/delete_contract_spec.rb
@@ -51,7 +51,7 @@ RSpec.describe MeetingAgendaItems::DeleteContract do
meeting.update_column(:state, :closed)
end
- it_behaves_like 'contract is invalid', base: I18n.t(:text_meeting_not_editable_anymore)
+ it_behaves_like 'contract is invalid', base: I18n.t(:text_agenda_item_not_editable_anymore)
end
end
diff --git a/modules/meeting/spec/contracts/meeting_agenda_items/update_contract_spec.rb b/modules/meeting/spec/contracts/meeting_agenda_items/update_contract_spec.rb
index 39b3c2966be..b9c5318ab51 100644
--- a/modules/meeting/spec/contracts/meeting_agenda_items/update_contract_spec.rb
+++ b/modules/meeting/spec/contracts/meeting_agenda_items/update_contract_spec.rb
@@ -51,7 +51,7 @@ RSpec.describe MeetingAgendaItems::UpdateContract do
meeting.update_column(:state, :closed)
end
- it_behaves_like 'contract is invalid', base: I18n.t(:text_meeting_not_editable_anymore)
+ it_behaves_like 'contract is invalid', base: I18n.t(:text_agenda_item_not_editable_anymore)
end
context 'when an item_type is provided' do