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

default_query_config_shared_examples.rb « cycle_analytics « gitlab « lib « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4f648b27ea28acb523c3049ebe86af8ba3711b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

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

  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