Add test for question create UseCase checking if direct is set
This commit is contained in:
parent
83dbd5d2e3
commit
777b25f967
|
@ -22,6 +22,7 @@ describe UseCase::Question::Create do
|
|||
expect(question.content).to eq(content)
|
||||
expect(question.author_is_anonymous).to eq(anonymous)
|
||||
expect(question.author_identifier).to eq(author_identifier)
|
||||
expect(question.direct).to eq(true)
|
||||
|
||||
if should_send_to_inbox
|
||||
expect(target_user.inboxes.first.question_id).to eq(question.id)
|
||||
|
|
Loading…
Reference in New Issue