Fix test for asked count in UseCase::Question::Create

This commit is contained in:
Andreas Nedbal 2022-07-25 11:26:58 +02:00 committed by Andreas Nedbal
parent a39a6e2826
commit 65b69b86e4
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ describe UseCase::Question::Create do
it_behaves_like "creates the question"
it_behaves_like "validates content"
it "increments the source user's asked count" do
expect { subject }.to change { source_user.reload.asked_count }.by(1)
it "doesn't increment the source user's asked count" do
expect { subject }.not_to(change { source_user.reload.asked_count })
end
end
end