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