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
b1f542de
Commit
b1f542de
authored
May 12, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that each runner status has a matching scope
parent
b8709d61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spec/finders/ci/runners_finder_spec.rb
spec/finders/ci/runners_finder_spec.rb
+5
-3
No files found.
spec/finders/ci/runners_finder_spec.rb
View file @
b1f542de
...
...
@@ -25,10 +25,12 @@ RSpec.describe Ci::RunnersFinder do
end
context
'filter by status'
do
it
'calls the corresponding scope on Ci::Runner'
do
expect
(
Ci
::
Runner
).
to
receive
(
:paused
).
and_call_original
Ci
::
Runner
::
AVAILABLE_STATUSES
.
each
do
|
status
|
it
"calls the corresponding :
#{
status
}
scope on Ci::Runner"
do
expect
(
Ci
::
Runner
).
to
receive
(
status
.
to_sym
).
and_call_original
described_class
.
new
(
current_user:
admin
,
params:
{
status_status:
'paused'
}).
execute
described_class
.
new
(
current_user:
admin
,
params:
{
status_status:
status
}).
execute
end
end
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