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
2bcfaf6d
Commit
2bcfaf6d
authored
Jul 22, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-wrong-expectation' into 'master'
Fix a wrong expectation See merge request gitlab-org/gitlab!37473
parents
02c7e6d6
301dfe90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ee/spec/controllers/ee/projects/jobs_controller_spec.rb
ee/spec/controllers/ee/projects/jobs_controller_spec.rb
+3
-2
No files found.
ee/spec/controllers/ee/projects/jobs_controller_spec.rb
View file @
2bcfaf6d
...
...
@@ -78,10 +78,11 @@ RSpec.describe Projects::JobsController do
get_show
(
id:
job
.
id
,
format: :json
)
end
it
'
does not
exposes quota information'
do
it
'exposes quota information'
do
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
response
).
to
match_response_schema
(
'job/job_details'
,
dir:
'ee'
)
expect
(
json_response
[
'runners'
]).
not_to
have_key
(
'quota'
)
expect
(
json_response
[
'runners'
][
'quota'
][
'used'
]).
to
eq
0
expect
(
json_response
[
'runners'
][
'quota'
][
'limit'
]).
to
eq
2
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