BigW Consortium Gitlab

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

shared_examples 'default query config' do
James Lopez committed
4 5
  let(:project) { create(:empty_project) }
  let(:event) { described_class.new(project: project, stage: stage_name, options: { from: 1.day.ago }) }
James Lopez committed
6

James Lopez committed
7
  it 'has the stage attribute' do
James Lopez committed
8
    expect(event.stage).not_to be_nil
James Lopez committed
9 10
  end

11
  it 'has the projection attributes' do
James Lopez committed
12
    expect(event.projections).not_to be_nil
13 14
  end
end