gitlab-org--gitlab-foss/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
2016-11-18 08:13:34 +01:00

21 lines
485 B
Ruby

require 'spec_helper'
shared_examples 'default query config' do
let(:event) { described_class.new(project: double, 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