debian-mirror-gitlab/spec/workers/gitlab_usage_ping_worker_spec.rb

18 lines
385 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
describe GitlabUsagePingWorker do
subject { described_class.new }
2017-09-10 17:25:29 +05:30
it 'delegates to SubmitUsagePingService' do
allow(subject).to receive(:try_obtain_lease).and_return(true)
2017-08-17 22:00:37 +05:30
2020-03-13 15:44:24 +05:30
expect_next_instance_of(SubmitUsagePingService) do |instance|
expect(instance).to receive(:execute)
end
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
subject.perform
2017-08-17 22:00:37 +05:30
end
end