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
c35f6c6f
Commit
c35f6c6f
authored
Apr 23, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply reviewer feedback
Remove uses of expect_any_instance_of and unnecessary import.
parent
f977f5f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+6
-4
No files found.
spec/models/ci/build_spec.rb
View file @
c35f6c6f
...
...
@@ -3,8 +3,6 @@
require
'spec_helper'
RSpec
.
describe
Ci
::
Build
do
include
AfterNextHelpers
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
,
reload:
true
)
{
create
(
:group
)
}
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
,
:repository
,
group:
group
)
}
...
...
@@ -4716,7 +4714,9 @@ RSpec.describe Ci::Build do
end
it
'executes services'
do
expect_any_instance_of
(
Service
).
to
receive
(
:async_execute
)
allow_next_found_instance_of
(
Service
)
do
|
service
|
expect
(
service
).
to
receive
(
:async_execute
)
end
build
.
execute_hooks
end
...
...
@@ -4728,7 +4728,9 @@ RSpec.describe Ci::Build do
end
it
'does not execute services'
do
expect_any_instance_of
(
Service
).
not_to
receive
(
:async_execute
)
allow_next_found_instance_of
(
Service
)
do
|
service
|
expect
(
service
).
not_to
receive
(
:async_execute
)
end
build
.
execute_hooks
end
...
...
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