mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
14 lines
376 B
Ruby
14 lines
376 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe EnqueueBackgroundJob, type: :job do
|
|
let(:job_name) { 'start_reverse_geocoding' }
|
|
let(:user_id) { 1 }
|
|
|
|
it 'calls job creation service' do
|
|
expect(Jobs::Create).to receive(:new).with(job_name, user_id).and_return(double(call: nil))
|
|
|
|
EnqueueBackgroundJob.perform_now(job_name, user_id)
|
|
end
|
|
end
|