BigW Consortium Gitlab

plan_event_fetcher_spec.rb 431 Bytes
Newer Older
1
require 'spec_helper'
2
require 'lib/gitlab/cycle_analytics/shared_event_spec'
3

4
describe Gitlab::CycleAnalytics::PlanEventFetcher do
James Lopez committed
5 6
  let(:stage_name) { :plan }

James Lopez committed
7
  it_behaves_like 'default query config' do
8 9
    context 'no commits' do
      it 'does not blow up if there are no commits' do
James Lopez committed
10
        allow(event).to receive(:event_result).and_return([{}])
11 12 13 14

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