debian-mirror-gitlab/spec/workers/gitlab_usage_ping_worker_spec.rb
2020-03-13 15:44:24 +05:30

18 lines
385 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe GitlabUsagePingWorker do
subject { described_class.new }
it 'delegates to SubmitUsagePingService' do
allow(subject).to receive(:try_obtain_lease).and_return(true)
expect_next_instance_of(SubmitUsagePingService) do |instance|
expect(instance).to receive(:execute)
end
subject.perform
end
end