Skip to content

Commit

Permalink
Fix flakey test (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroalemao authored Jun 20, 2024
1 parent 0726bf8 commit 48a2331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/models/cohort_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"

RSpec.describe Cohort, type: :model do
subject(:statement) { build(:cohort) }
subject { build(:cohort) }

describe "validations" do
it { is_expected.to validate_presence_of(:registration_start_date) }
Expand Down
2 changes: 1 addition & 1 deletion spec/models/statement_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"

RSpec.describe Statement, type: :model do
subject(:statement) { build(:statement) }
subject(:statement) { create(:statement) }

describe "relationships" do
it { is_expected.to belong_to(:cohort).required }
Expand Down

0 comments on commit 48a2331

Please sign in to comment.