mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
16 lines
354 B
Ruby
16 lines
354 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
require 'rails_helper'
|
||
|
|
|
||
|
|
RSpec.describe AppVersionCheckingJob, type: :job do
|
||
|
|
describe '#perform' do
|
||
|
|
let(:job) { described_class.new }
|
||
|
|
|
||
|
|
it 'calls CheckAppVersion service' do
|
||
|
|
expect(CheckAppVersion).to receive(:new).and_return(instance_double(CheckAppVersion, call: true))
|
||
|
|
|
||
|
|
job.perform
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|