提交 e19687b2 编写于 作者: G Grzegorz Bizon

Fix Rubocop offenses in commit status API specs

上级 2bc938ef
......@@ -159,7 +159,8 @@ describe API::CommitStatuses, api: true do
ref: 'develop',
description: 'test',
coverage: 80.0,
target_url: 'http://gitlab.com/status' }
target_url: 'http://gitlab.com/status'
}
expect(response).to have_http_status(201)
expect(json_response['sha']).to eq(commit.id)
......@@ -180,14 +181,16 @@ describe API::CommitStatuses, api: true do
ref: 'develop',
description: 'coverage test',
coverage: 0.0,
target_url: 'http://gitlab.com/status' }
target_url: 'http://gitlab.com/status'
}
post api(post_url, developer), {
state: 'success',
name: 'coverage',
ref: 'develop',
description: 'new description',
coverage: 90.0 }
coverage: 90.0
}
end
it 'updates a commit status' do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册