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 failed contract error message

Kabiru Mwenja1fa19e01f213
diff --git a/config/locales/en.yml b/config/locales/en.yml
index adcbbe77da9..31659d38d12 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1151,6 +1151,7 @@ en:
title: "Working days"
false: "working days only"
true: "include non-working days"
+ journal_restricted: Restricted Journal
notify: "Notify" # used in custom actions
parent: "Parent"
parent_issue: "Parent"
diff --git a/spec/contracts/work_packages/create_note_contract_spec.rb b/spec/contracts/work_packages/create_note_contract_spec.rb
index 290b18e4b71..e880862f122 100644
--- a/spec/contracts/work_packages/create_note_contract_spec.rb
+++ b/spec/contracts/work_packages/create_note_contract_spec.rb
@@ -97,6 +97,7 @@ RSpec.describe WorkPackages::CreateNoteContract do
it "is invalid" do
expect(contract.errors.symbols_for(:journal_restricted))
.to contain_exactly(:invalid)
+ expect(contract.errors.full_messages).to include("Restricted Journal is invalid.")
end
end
end