diff --git a/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb b/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb index d3c0a9640..5a7870f65 100644 --- a/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb +++ b/spec/enterprise/jobs/captain/documents/crawl_job_spec.rb @@ -17,7 +17,8 @@ RSpec.describe Captain::Documents::CrawlJob, type: :job do # Make sure we have the Firecrawl config properly set config = InstallationConfig.find_or_create_by(name: 'CAPTAIN_FIRECRAWL_API_KEY') - config.update(value: 'test-key') + config.value = 'test-key' + config.save! # Mock simple crawl service to avoid HTTP calls if it somehow gets called simple_crawler = instance_double(Captain::Tools::SimplePageCrawlService)