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

[chore] enable contract localization test

Eric Schubertcdd8c16e5b12
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 363a36d6f41..51d770a10d3 100644
--- a/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
+++ b/spec/contracts/custom_fields/hierarchy/insert_item_contract_spec.rb
@@ -70,12 +70,12 @@ RSpec.describe CustomFields::Hierarchy::InsertItemContract do
expect(result.errors.to_h).to include(label: ["must be unique within the same hierarchy level"])
end
- context "if locale is set to 'de'", skip: "Skipped until the german localization is available" do
+ context "if locale is set to 'de'" do
it "is invalid with localized validation errors" do
I18n.with_locale(:de) do
result = subject.call(params)
expect(result).to be_failure
- expect(result.errors.to_h).to include(label: ["muss einzigartig innerhalb derselben Hierarchieebene sein"])
+ expect(result.errors.to_h).to include(label: ["muss innerhalb der gleichen Hierarchieebene eindeutig sein"])
end
end
end