diff options
Diffstat (limited to 'spec/workers/gitlab_usage_ping_worker_spec.rb')
-rw-r--r-- | spec/workers/gitlab_usage_ping_worker_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/workers/gitlab_usage_ping_worker_spec.rb b/spec/workers/gitlab_usage_ping_worker_spec.rb new file mode 100644 index 00000000000..49b4e04dc7c --- /dev/null +++ b/spec/workers/gitlab_usage_ping_worker_spec.rb @@ -0,0 +1,13 @@ +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_any_instance_of(SubmitUsagePingService).to receive(:execute) + + subject.perform + end +end |