Add test for question create UseCase checking if direct is set

This commit is contained in:
Andreas Nedbal 2022-07-24 21:59:55 +02:00
parent 83dbd5d2e3
commit 777b25f967
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ describe UseCase::Question::Create do
expect(question.content).to eq(content) expect(question.content).to eq(content)
expect(question.author_is_anonymous).to eq(anonymous) expect(question.author_is_anonymous).to eq(anonymous)
expect(question.author_identifier).to eq(author_identifier) expect(question.author_identifier).to eq(author_identifier)
expect(question.direct).to eq(true)
if should_send_to_inbox if should_send_to_inbox
expect(target_user.inboxes.first.question_id).to eq(question.id) expect(target_user.inboxes.first.question_id).to eq(question.id)