Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-05-09 23:24:24 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-05-12 00:07:12 +0300
commit693602d957b2bb48a5270d249a2e2708c03bd803 (patch)
treef68006a9b15cf54fde168ae9997796994bb60ed5 /spec/models/environment_spec.rb
parent4f824d2aecf4fec46febd767fa7f7d747c732112 (diff)
Keep presentation logic in one place and remove unecessary arguments.
+ fix tests
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index edc1c204014..12519de8636 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -393,7 +393,7 @@ describe Environment, models: true do
it 'returns the metrics from the deployment service' do
expect(project.monitoring_service)
- .to receive(:metrics).with(environment)
+ .to receive(:environment_metrics).with(environment)
.and_return(:fake_metrics)
is_expected.to eq(:fake_metrics)