mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
15 lines
354 B
Ruby
15 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
|