mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 04:02:07 +01:00
20 lines
502 B
Ruby
20 lines
502 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.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
|