Fix test for asked count in UseCase::Question::Create
This commit is contained in:
parent
a39a6e2826
commit
65b69b86e4
|
@ -119,8 +119,8 @@ describe UseCase::Question::Create do
|
||||||
it_behaves_like "creates the question"
|
it_behaves_like "creates the question"
|
||||||
it_behaves_like "validates content"
|
it_behaves_like "validates content"
|
||||||
|
|
||||||
it "increments the source user's asked count" do
|
it "doesn't increment the source user's asked count" do
|
||||||
expect { subject }.to change { source_user.reload.asked_count }.by(1)
|
expect { subject }.not_to(change { source_user.reload.asked_count })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue