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

plan_event_fetcher_spec.rb « cycle_analytics « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c3c1728fc65bed648666b2bdd87eee0b83811a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'
require 'lib/gitlab/cycle_analytics/shared_event_spec'

describe Gitlab::CycleAnalytics::PlanEventFetcher do
  let(:stage_name) { :plan }

  it_behaves_like 'default query config' do
    context 'no commits' do
      it 'does not blow up if there are no commits' do
        allow_any_instance_of(Gitlab::CycleAnalytics::MetricsFetcher).to receive(:events).and_return([{}])

        expect { event.fetch }.not_to raise_error
      end
    end
  end
end