Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab_usage_ping_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05d6f2e585b45e6678200f5df027782d44221d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.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