You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
496 B
21 lines
496 B
1 year ago
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rails_helper'
|
||
|
|
||
|
describe Scheduler::SoftwareUpdateCheckScheduler do
|
||
|
subject { described_class.new }
|
||
|
|
||
|
describe 'perform' do
|
||
|
let(:service_double) { instance_double(SoftwareUpdateCheckService, call: nil) }
|
||
|
|
||
|
before do
|
||
|
allow(SoftwareUpdateCheckService).to receive(:new).and_return(service_double)
|
||
|
end
|
||
|
|
||
|
it 'calls SoftwareUpdateCheckService' do
|
||
|
subject.perform
|
||
|
expect(service_double).to have_received(:call)
|
||
|
end
|
||
|
end
|
||
|
end
|