Fix Rubocop offenses in commit status API specs
This commit is contained in:
parent
2bc938ef89
commit
e19687b224
|
@ -159,7 +159,8 @@ describe API::CommitStatuses, api: true do
|
||||||
ref: 'develop',
|
ref: 'develop',
|
||||||
description: 'test',
|
description: 'test',
|
||||||
coverage: 80.0,
|
coverage: 80.0,
|
||||||
target_url: 'http://gitlab.com/status' }
|
target_url: 'http://gitlab.com/status'
|
||||||
|
}
|
||||||
|
|
||||||
expect(response).to have_http_status(201)
|
expect(response).to have_http_status(201)
|
||||||
expect(json_response['sha']).to eq(commit.id)
|
expect(json_response['sha']).to eq(commit.id)
|
||||||
|
@ -180,14 +181,16 @@ describe API::CommitStatuses, api: true do
|
||||||
ref: 'develop',
|
ref: 'develop',
|
||||||
description: 'coverage test',
|
description: 'coverage test',
|
||||||
coverage: 0.0,
|
coverage: 0.0,
|
||||||
target_url: 'http://gitlab.com/status' }
|
target_url: 'http://gitlab.com/status'
|
||||||
|
}
|
||||||
|
|
||||||
post api(post_url, developer), {
|
post api(post_url, developer), {
|
||||||
state: 'success',
|
state: 'success',
|
||||||
name: 'coverage',
|
name: 'coverage',
|
||||||
ref: 'develop',
|
ref: 'develop',
|
||||||
description: 'new description',
|
description: 'new description',
|
||||||
coverage: 90.0 }
|
coverage: 90.0
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'updates a commit status' do
|
it 'updates a commit status' do
|
||||||
|
|
Loading…
Reference in New Issue