summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/requests/api/tracking_shared_examples.rb
blob: 2e6feae3f9887c905913e0fb03cb8885491aa831 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

RSpec.shared_examples 'a gitlab tracking event' do |category, action|
  it "creates a gitlab tracking event #{action}" do
    expect(Gitlab::Tracking).to receive(:event).with(category, action, {})

    subject
  end
end