BigW Consortium Gitlab

gitlab_usage_ping_worker_spec.rb 308 Bytes
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