From 0b89658cc774b6fb9b55d9201c1d1e12da265072 Mon Sep 17 00:00:00 2001 From: Dombi Attila <83396+dombesz@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:22:39 +0200 Subject: [PATCH] Fix specs --- spec/contracts/project_life_cycle_steps/base_contract_spec.rb | 3 +-- spec/models/project_spec.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/contracts/project_life_cycle_steps/base_contract_spec.rb b/spec/contracts/project_life_cycle_steps/base_contract_spec.rb index 8bb93c4a5b65..e0df64f40504 100644 --- a/spec/contracts/project_life_cycle_steps/base_contract_spec.rb +++ b/spec/contracts/project_life_cycle_steps/base_contract_spec.rb @@ -116,8 +116,7 @@ context "and the other steps have increasing dates" do let(:steps) { [step1, step_missing_dates, step2] } - it_behaves_like "contract is invalid", - "available_life_cycle_steps.date_range": :blank + it_behaves_like "contract is valid" end context "and the other steps have decreasing dates" do diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 0a446f85d63d..ab2e73be473a 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -399,7 +399,7 @@ end describe ".validates_associated" do - let!(:project_stage) { create :project_stage, :skip_validate, project:, start_date: nil, end_date: nil } + let!(:project_stage) { create :project_stage, :skip_validate, project:, start_date: nil } it "is valid without a validation context" do expect(project).to be_valid