gitlab-org--gitlab-foss/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb

15 lines
381 B
Ruby
Raw Normal View History

require 'spec_helper'
shared_examples 'default query config' do
let(:project) { create(:project) }
2016-12-09 09:23:09 -05:00
let(:event) { described_class.new(project: project, stage: stage_name, options: { from: 1.day.ago }) }
2016-11-18 02:13:34 -05:00
2016-11-17 08:14:23 -05:00
it 'has the stage attribute' do
2016-12-09 09:23:09 -05:00
expect(event.stage).not_to be_nil
2016-11-17 08:14:23 -05:00
end
it 'has the projection attributes' do
2016-11-18 02:13:34 -05:00
expect(event.projections).not_to be_nil
end
end