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

track_self_describing_event_matcher.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3723d2418f25c28bbcc9725a1e99586abfc8e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

RSpec::Matchers.define :track_self_describing_event do |schema, data|
  match do
    expect(Gitlab::Tracking).to have_received(:self_describing_event)
      .with(schema, data: data)
  end

  match_when_negated do
    expect(Gitlab::Tracking).not_to have_received(:self_describing_event)
  end
end