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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
comment on surprising error duplication
ulfertsfa01eb0e2aba
diff --git a/spec/contracts/roles/create_contract_spec.rb b/spec/contracts/roles/create_contract_spec.rbindex b844154a1c2..8cd2cb06e63 100644--- a/spec/contracts/roles/create_contract_spec.rb+++ b/spec/contracts/roles/create_contract_spec.rb@@ -69,6 +69,10 @@ RSpec.describe Roles::CreateContract doendit 'is invalid' do+ # The inclusion is in here twice because:+ # * The contract validates the type (to check that only GlobalRole and ProjectRole are created)+ # * The model validates the type (to check that only Role subclasses are created)+ # This should not cause an issue for users so we disregard this imperfect duplication.expect_valid(false, type: %i(inclusion inclusion))endend