summaryrefslogtreecommitdiff
path: root/spec/workers/gitlab_usage_ping_worker_spec.rb
blob: 49b4e04dc7c266f5a2839abf8f0edd846137feb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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