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

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

require 'spec_helper'

RSpec.describe ServicePing::BuildPayload do
  describe '#execute', :without_license do
    subject(:service_ping_payload) { described_class.new.execute }

    include_context 'stubbed service ping metrics definitions' do
      let(:subscription_metrics) do
        [
          metric_attributes('active_user_count', "subscription")
        ]
      end
    end

    it_behaves_like 'complete service ping payload'
  end
end