fix the rspec related to pdf_document

This commit is contained in:
Tanmay Sharma
2025-08-13 21:34:37 +05:30
parent 3beb7950fc
commit b50ed7d5b6
@@ -22,7 +22,7 @@ RSpec.describe Captain::Llm::PdfProcessingService do
describe '#process' do
let(:files_api) { instance_double(OpenAI::Files) }
let(:temp_file) { instance_double(Tempfile) }
let(:pdf_attachment) { instance_double(ActiveStorage::Attachment) }
let(:pdf_attachment) { double('pdf_attachment') } # rubocop:disable RSpec/VerifiedDoubles
before do
allow(openai_client).to receive(:files).and_return(files_api)