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
[#63776] fixed contract unit test
Eric Schubertb4b0bcd9bcc4
diff --git a/spec/contracts/types/base_contract_spec.rb b/spec/contracts/types/base_contract_spec.rbindex 710370b6aee..ec76e81524b 100644--- a/spec/contracts/types/base_contract_spec.rb+++ b/spec/contracts/types/base_contract_spec.rb@@ -38,14 +38,14 @@ RSpec.describe Types::BaseContract dodescribe "#validation" docontext "if subject generation patterns contains invalid tokens" do- let(:valid_tokens_hash) { { work_package: { assignee: "Assignee" } } }+ let(:valid_tokens) { [Types::Patterns::AttributeToken.new(:assignee, nil, nil)] }let(:work_package_type) doType.new(patterns: { subject: { blueprint: "Vacation {{vaders_toy}}", enabled: true } })endbefore dotoken_mapper_double = instance_double(Types::Patterns::TokenPropertyMapper)- allow(token_mapper_double).to receive(:tokens_for_type).and_return(valid_tokens_hash)+ allow(token_mapper_double).to receive(:tokens_for_type).and_return(valid_tokens)allow(Types::Patterns::TokenPropertyMapper).to receive(:new).and_return(token_mapper_double)end