summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
blob: c22d27f60d6a3667815259f769a8f5d6ff783d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

shared_examples 'default query config' do
  let(:project) { create(:project) }
  let(:event) { described_class.new(project: project, stage: stage_name, options: { from: 1.day.ago }) }

  it 'has the stage attribute' do
    expect(event.stage).not_to be_nil
  end

  it 'has the projection attributes' do
    expect(event.projections).not_to be_nil
  end
end