Skip to content

Commit

Permalink
test(survey): ameba issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox committed Feb 21, 2024
1 parent 377076c commit 893b83e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/survey_invitation_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ module PlaceOS::Model

it "lists invitations with sent = true" do
invitation_one = Generator.invitation(sent: true).save!
invitation_two = Generator.invitation(sent: false).save!
invitation_three = Generator.invitation(sent: nil).save!
_invitation_two = Generator.invitation(sent: false).save!
_invitation_three = Generator.invitation(sent: nil).save!

surveys = Survey::Invitation.list(sent: true)
surveys.size.should eq 1
surveys.first.id.should eq invitation_one.id
end

it "lists invitations with sent != true" do
invitation_one = Generator.invitation(sent: true).save!
_invitation_one = Generator.invitation(sent: true).save!
invitation_two = Generator.invitation(sent: false).save!
invitation_three = Generator.invitation(sent: nil).save!

Expand Down

0 comments on commit 893b83e

Please sign in to comment.