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 project enabled modules contract spec

Dombi Attila4a6407724a98
diff --git a/spec/contracts/projects/enabled_modules_contract_spec.rb b/spec/contracts/projects/enabled_modules_contract_spec.rb
index 245e298e14e..a525d67476b 100644
--- a/spec/contracts/projects/enabled_modules_contract_spec.rb
+++ b/spec/contracts/projects/enabled_modules_contract_spec.rb
@@ -46,6 +46,8 @@ RSpec.describe Projects::EnabledModulesContract do
end
allow(OpenProject::AccessControl).to receive(:modules).and_return(ac_modules)
+ allow(I18n).to receive(:t).with("project_module_a_module").and_return("A Module")
+ allow(I18n).to receive(:t).with("project_module_b_module").and_return("B Module")
end
describe '#valid?' do