2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
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(event).to receive(:event_result).and_return([{}])
|
|
|
|
|
|
|
|
expect { event.fetch }.not_to raise_error
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|