dawarich/spec/jobs/export_job_spec.rb
2025-04-04 20:14:44 +02:00

15 lines
376 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe ExportJob, type: :job do
let(:export) { create(:export) }
let(:start_at) { 1.day.ago }
let(:end_at) { Time.zone.now }
it 'calls the Exports::Create service class' do
expect(Exports::Create).to receive(:new).with(export:).and_call_original
described_class.perform_now(export.id)
end
end