Commit 301dfe90 authored by Rémy Coutable's avatar Rémy Coutable

Fix a wrong expectation

The previous expectation was only passing on retries.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ce8b4cbc
......@@ -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
......
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