Commit 2bcfaf6d authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'fix-wrong-expectation' into 'master'

Fix a wrong expectation

See merge request gitlab-org/gitlab!37473
parents 02c7e6d6 301dfe90
...@@ -78,10 +78,11 @@ RSpec.describe Projects::JobsController do ...@@ -78,10 +78,11 @@ RSpec.describe Projects::JobsController do
get_show(id: job.id, format: :json) get_show(id: job.id, format: :json)
end end
it 'does not exposes quota information' do it 'exposes quota information' do
expect(response).to have_gitlab_http_status(:ok) expect(response).to have_gitlab_http_status(:ok)
expect(response).to match_response_schema('job/job_details', dir: 'ee') 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment