Fix tests for `UseCase::Question::CreateFollowers`

This commit is contained in:
Karina Kwiatek 2022-07-30 15:51:28 +02:00
parent 050d7d5b56
commit 7f6f852841
1 changed files with 2 additions and 2 deletions

View File

@ -19,11 +19,11 @@ describe UseCase::Question::CreateFollowers do
let(:author_identifier) { nil }
it "creates question" do
expect(subject[:question]).to be_persisted
expect(subject[:resource]).to be_persisted
end
it "enqueues a QuestionWorker job" do
expect(QuestionWorker).to have_enqueued_sidekiq_job(source_user.id, subject[:question].id)
expect(QuestionWorker).to have_enqueued_sidekiq_job(source_user.id, subject[:resource].id)
end
end
end