diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 15:11:10 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 15:11:10 +0100 |
commit | e19687b22480103d1a475ea8b56a3a36a0e77e1b (patch) | |
tree | 01a54cce3e8025a32db81206bce8faf5b29a9142 | |
parent | 2bc938ef896b8b5c81bb0997125d1a01f4c29b8d (diff) | |
download | gitlab-ce-e19687b22480103d1a475ea8b56a3a36a0e77e1b.tar.gz |
Fix Rubocop offenses in commit status API specsfix/gb/update-commit-status-api
-rw-r--r-- | spec/requests/api/commit_statuses_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/requests/api/commit_statuses_spec.rb b/spec/requests/api/commit_statuses_spec.rb index 4b67ac85c0a..d8b3cc041a5 100644 --- a/spec/requests/api/commit_statuses_spec.rb +++ b/spec/requests/api/commit_statuses_spec.rb @@ -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 |