diff options
| author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 10:55:08 -0600 |
|---|---|---|
| committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:22 -0600 |
| commit | 206953a430e442fbbd06984b1120890dbf8d3f79 (patch) | |
| tree | 74922128d6a26bc0c9024b8588c9f38a6250cc0d /spec/requests/ci/api | |
| parent | f72a65603db4dfdb41f327ab03892eed5dadb57e (diff) | |
| download | gitlab-ce-206953a430e442fbbd06984b1120890dbf8d3f79.tar.gz | |
Prefer leading style for Style/DotPosition
Diffstat (limited to 'spec/requests/ci/api')
| -rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 03b860ae54e..ecdcdb677f4 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -38,8 +38,8 @@ describe Ci::API::Builds do it 'gives 204 and set the same X-GitLab-Last-Update' do expect(response).to have_http_status(204) - expect(response.header['X-GitLab-Last-Update']). - to eq(last_update) + expect(response.header['X-GitLab-Last-Update']) + .to eq(last_update) end end @@ -49,8 +49,8 @@ describe Ci::API::Builds do it 'gives 204 and set a new X-GitLab-Last-Update' do expect(response).to have_http_status(204) - expect(response.header['X-GitLab-Last-Update']). - to eq(new_update) + expect(response.header['X-GitLab-Last-Update']) + .to eq(new_update) end end @@ -93,8 +93,8 @@ describe Ci::API::Builds do context 'when concurrently updating build' do before do - expect_any_instance_of(Ci::Build).to receive(:run!). - and_raise(ActiveRecord::StaleObjectError.new(nil, nil)) + expect_any_instance_of(Ci::Build).to receive(:run!) + .and_raise(ActiveRecord::StaleObjectError.new(nil, nil)) end it 'returns a conflict' do @@ -260,8 +260,8 @@ describe Ci::API::Builds do end it 'does not update runner info' do - expect { register_builds }. - not_to change { runner.reload.contacted_at } + expect { register_builds } + .not_to change { runner.reload.contacted_at } end end |
