gitlab-org--gitlab-foss/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
2017-01-17 11:32:55 +01:00

14 lines
387 B
Ruby

require 'spec_helper'
shared_examples 'default query config' do
let(:project) { create(:empty_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