diff --git a/spec/lib/use_case/question/create_followers_spec.rb b/spec/lib/use_case/question/create_followers_spec.rb index 0ee8475e..2b310427 100644 --- a/spec/lib/use_case/question/create_followers_spec.rb +++ b/spec/lib/use_case/question/create_followers_spec.rb @@ -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