Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
92d64d19
Commit
92d64d19
authored
Sep 09, 2020
by
Nicolas Dular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow snowplow spec helper receiving multiple events
parent
e221ff9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spec/support/helpers/snowplow_helpers.rb
spec/support/helpers/snowplow_helpers.rb
+1
-1
No files found.
spec/support/helpers/snowplow_helpers.rb
View file @
92d64d19
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment