feat: use instance_double

This commit is contained in:
Shivam Mishra
2025-01-20 16:39:40 +05:30
parent 4db7505550
commit 43a70ba0e4
@@ -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)