diff options
author | James Lopez <james@jameslopez.es> | 2016-12-01 11:21:24 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 11:32:55 +0100 |
commit | b8056669849729cab5700466a7fae6dc6b2743b2 (patch) | |
tree | 788c5a8bf535b48d3e1b8593f6be8a45205e317e /spec/serializers | |
parent | 8183e848648bc737e4a09f76f4f55ee1cf106b26 (diff) | |
download | gitlab-ce-b8056669849729cab5700466a7fae6dc6b2743b2.tar.gz |
refactor cycle analytics - updated based on MR feedback
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/analytics_stage_serializer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/analytics_stage_serializer_spec.rb b/spec/serializers/analytics_stage_serializer_spec.rb index 0f2d534e714..47c537fcf84 100644 --- a/spec/serializers/analytics_stage_serializer_spec.rb +++ b/spec/serializers/analytics_stage_serializer_spec.rb @@ -10,7 +10,7 @@ describe AnalyticsStageSerializer do let(:resource) { Gitlab::CycleAnalytics::CodeStage.new(project: double, options: {}, stage: :code) } before do - allow_any_instance_of(Gitlab::CycleAnalytics::MetricsFetcher).to receive(:calculate_metric).and_return(1.12) + allow_any_instance_of(Gitlab::CycleAnalytics::MetricsFetcher).to receive(:median).and_return(1.12) allow_any_instance_of(Gitlab::CycleAnalytics::BaseEvent).to receive(:event_result).and_return({}) end |