BigW Consortium Gitlab

shared_event_spec.rb 485 Bytes
Newer Older
1 2 3
require 'spec_helper'

shared_examples 'default query config' do
James Lopez committed
4 5
  let(:event) { described_class.new(project: double, options: {}) }

6
  it 'has the start attributes' do
James Lopez committed
7
    expect(event.start_time_attrs).not_to be_nil
8 9
  end

James Lopez committed
10
  it 'has the stage attribute' do
James Lopez committed
11
    expect(event.stage).not_to be_nil
James Lopez committed
12 13
  end

14
  it 'has the end attributes' do
James Lopez committed
15
    expect(event.end_time_attrs).not_to be_nil
16 17 18
  end

  it 'has the projection attributes' do
James Lopez committed
19
    expect(event.projections).not_to be_nil
20 21
  end
end