Commit 92d64d19 authored by Nicolas Dular's avatar Nicolas Dular

Allow snowplow spec helper receiving multiple events

parent e221ff9b
...@@ -33,7 +33,7 @@ module SnowplowHelpers ...@@ -33,7 +33,7 @@ module SnowplowHelpers
# end # end
def expect_snowplow_event(category:, action:, **kwargs) def expect_snowplow_event(category:, action:, **kwargs)
expect(Gitlab::Tracking).to have_received(:event) expect(Gitlab::Tracking).to have_received(:event)
.with(category, action, **kwargs) .with(category, action, **kwargs).at_least(:once)
end end
# Asserts that no call to `Gitlab::Tracking#event` was made. # Asserts that no call to `Gitlab::Tracking#event` was made.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment