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

shared_event_spec.rb « cycle_analytics « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b0ea662b749cd68dbc0f9f1f4bff2b29c82a028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'spec_helper'

shared_examples 'default query config' do
  let(:fetcher) do
    Gitlab::CycleAnalytics::MetricsFetcher.new(project: create(:empty_project),
                                               from: 1.day.ago,
                                               branch: nil)
  end

  let(:event) { described_class.new(fetcher: fetcher, stage: stage_name, options: {}) }

  it 'has the start attributes' do
    expect(event.start_time_attrs).not_to be_nil
  end

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

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

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