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
6e340bb3
Commit
6e340bb3
authored
May 14, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that RunnersController correctly paginates
parent
ccf5374e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/controllers/admin/runners_controller_spec.rb
spec/controllers/admin/runners_controller_spec.rb
+11
-0
No files found.
spec/controllers/admin/runners_controller_spec.rb
View file @
6e340bb3
...
...
@@ -34,6 +34,17 @@ RSpec.describe Admin::RunnersController do
expect
(
response
.
body
).
to
have_content
(
'tag1'
)
expect
(
response
.
body
).
to
have_content
(
'tag2'
)
end
it
'paginates runners'
do
stub_const
(
"Admin::RunnersController::NUMBER_OF_RUNNERS_PER_PAGE"
,
1
)
create
(
:ci_runner
)
get
:index
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
assigns
(
:runners
).
count
).
to
be
(
1
)
end
end
describe
'#show'
do
...
...
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