mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:36:01 +01:00
Fix test for asked count in UseCase::Question::Create
This commit is contained in:
parent
a39a6e2826
commit
65b69b86e4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue