fix: chat service spec

This commit is contained in:
Shivam Mishra
2025-01-22 10:03:07 +05:30
parent bd160b64b6
commit c18bc6fd3b
@@ -23,7 +23,7 @@ RSpec.describe Captain::Copilot::ChatService do
end
it 'increments usage' do
described_class.new(assistant, { previous_messages: 'Hello', conversation_history: 'Hi' }).execute('Hey')
described_class.new(assistant, { previous_messages: ['Hello'], conversation_history: 'Hi' }).execute('Hey')
expect(account).to have_received(:increment_response_usage).once
end
end