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 test failing with :de locale

Christophe Bliard2199f1295a85
diff --git a/spec/seeders/root_seeder_standard_edition_spec.rb b/spec/seeders/root_seeder_standard_edition_spec.rb
index 79aa92f36cf..d389b26ac16 100644
--- a/spec/seeders/root_seeder_standard_edition_spec.rb
+++ b/spec/seeders/root_seeder_standard_edition_spec.rb
@@ -62,12 +62,11 @@ describe RootSeeder,
it 'links work packages to their version' do
count_by_version = WorkPackage.joins(:version).group('versions.name').count
- count_by_version.transform_keys! { _1.gsub(/^tr: /, '') } # revert simulated translation if any
- expect(count_by_version).to eq(
- 'Bug Backlog' => 1,
- 'Sprint 1' => 8,
- 'Product Backlog' => 7
- )
+ # testing with strings would fail for the German language test
+ # 'Bug Backlog' => 1,
+ # 'Sprint 1' => 8,
+ # 'Product Backlog' => 7
+ expect(count_by_version.values).to contain_exactly(1, 8, 7)
end
it 'creates different types of queries' do