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

[#57816] fixed contract unit test

Eric Schubert561e2a55660f
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 4a9af80c1c8..5d904c44a63 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1556,7 +1556,7 @@ en:
create_new_page: "Wiki page"
date:
- abbr_day_names: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ]
+ abbr_day_names: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
abbr_month_names:
[
~,
diff --git a/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb b/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
index 70af1da8caa..72992247c52 100644
--- a/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
+++ b/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
@@ -67,7 +67,7 @@ RSpec.describe CustomFields::Hierarchy::InsertItemContract do
it "is invalid" do
result = subject.call(params)
expect(result).to be_failure
- expect(result.errors.to_h).to include(label: ["Label must be unique within the same hierarchy level"])
+ expect(result.errors.to_h).to include(label: ["must be unique within the same hierarchy level"])
end
end