Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Dec 17, 2024
1 parent a96fdd1 commit 0b89658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/models/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b89658

Please sign in to comment.