Commit 34875ce6 authored by James Lopez's avatar James Lopez

fix serializer

parent 1b220df5
...@@ -10,7 +10,7 @@ describe AnalyticsStageSerializer do ...@@ -10,7 +10,7 @@ describe AnalyticsStageSerializer do
let(:resource) { Gitlab::CycleAnalytics::CodeStage.new(project: double, options: {}) } let(:resource) { Gitlab::CycleAnalytics::CodeStage.new(project: double, options: {}) }
before do before do
allow_any_instance_of(Gitlab::CycleAnalytics::MetricsFetcher).to receive(:median).and_return(1.12) allow_any_instance_of(Gitlab::CycleAnalytics::BaseStage).to receive(:median).and_return(1.12)
allow_any_instance_of(Gitlab::CycleAnalytics::BaseEventFetcher).to receive(:event_result).and_return({}) allow_any_instance_of(Gitlab::CycleAnalytics::BaseEventFetcher).to receive(:event_result).and_return({})
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment