blob: 587f185b970e97da489d831b4bd0258a72a10109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require 'spec_helper'
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
|