diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-16 16:53:02 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-16 16:53:02 +0200 |
commit | 64bb0d37d4ef1f8574355019f198e40bc9b70224 (patch) | |
tree | c4335dbfe28d6810262aef1fc7bb875560695907 /spec/controllers/projects/environments_controller_spec.rb | |
parent | b97d5b65dd40fb5d8753c0677534e82cb5636f2d (diff) | |
download | gitlab-ce-64bb0d37d4ef1f8574355019f198e40bc9b70224.tar.gz |
cleanup wip
Diffstat (limited to 'spec/controllers/projects/environments_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/environments_controller_spec.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/controllers/projects/environments_controller_spec.rb b/spec/controllers/projects/environments_controller_spec.rb index ab171cde6bf..749b090d6e0 100644 --- a/spec/controllers/projects/environments_controller_spec.rb +++ b/spec/controllers/projects/environments_controller_spec.rb @@ -338,11 +338,13 @@ describe Projects::EnvironmentsController do context 'when environment has some metrics' do before do - expect(environment).to receive(:additional_metrics).and_return({ - success: true, - data: {}, - last_update: 42 - }) + expect(environment) + .to receive(:additional_metrics) + .and_return({ + success: true, + data: {}, + last_update: 42 + }) end it 'returns a metrics JSON document' do |