diff --git a/spec/enterprise/jobs/captain/conversation/response_builder_job_spec.rb b/spec/enterprise/jobs/captain/conversation/response_builder_job_spec.rb index cf5e3a1ab..ddb683129 100644 --- a/spec/enterprise/jobs/captain/conversation/response_builder_job_spec.rb +++ b/spec/enterprise/jobs/captain/conversation/response_builder_job_spec.rb @@ -8,7 +8,7 @@ RSpec.describe Captain::Conversation::ResponseBuilderJob, type: :job do describe '#perform' do let(:conversation) { create(:conversation, inbox: inbox, account: account) } - let(:mock_llm_chat_service) { double('Captain::Llm::AssistantChatService') } + let(:mock_llm_chat_service) { instance_double('Captain::Llm::AssistantChatService') } before do create(:message, conversation: conversation, content: 'Hello', message_type: :incoming)