mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
18 lines
462 B
Ruby
18 lines
462 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe AreaVisitsCalculationSchedulingJob, type: :job do
|
|
describe '#perform' do
|
|
let(:area) { create(:area) }
|
|
let(:user) { create(:user) }
|
|
|
|
it 'calls the AreaVisitsCalculationService' do
|
|
Sidekiq::Testing.inline! do
|
|
expect(AreaVisitsCalculatingJob).to receive(:perform_later).with(user.id).and_call_original
|
|
|
|
described_class.new.perform
|
|
end
|
|
end
|
|
end
|
|
end
|