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
ebf48094
Commit
ebf48094
authored
Jul 15, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix event create specs
parent
bc095759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/services/event_create_service_spec.rb
spec/services/event_create_service_spec.rb
+4
-2
No files found.
spec/services/event_create_service_spec.rb
View file @
ebf48094
...
...
@@ -318,7 +318,8 @@ RSpec.describe EventCreateService do
specify
{
expect
{
result
}.
to
change
{
Event
.
count
}.
by
(
8
)
}
specify
{
expect
{
result
}.
not_to
exceed_query_limit
(
1
)
}
# An addditional query due to event tracking
specify
{
expect
{
result
}.
not_to
exceed_query_limit
(
2
)
}
it
'creates 3 created design events'
do
ids
=
result
.
pluck
(
'id'
)
...
...
@@ -347,7 +348,8 @@ RSpec.describe EventCreateService do
specify
{
expect
{
result
}.
to
change
{
Event
.
count
}.
by
(
5
)
}
specify
{
expect
{
result
}.
not_to
exceed_query_limit
(
1
)
}
# An addditional query due to event tracking
specify
{
expect
{
result
}.
not_to
exceed_query_limit
(
2
)
}
it
'creates 5 destroyed design events'
do
ids
=
result
.
pluck
(
'id'
)
...
...
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