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 specs

Dombi Attila0b89658cc774
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 8bb93c4a5b6..e0df64f4050 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 @@ RSpec.describe ProjectLifeCycleSteps::BaseContract do
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 0a446f85d63..ab2e73be473 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -399,7 +399,7 @@ RSpec.describe Project do
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