debian-mirror-gitlab/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb

17 lines
412 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
require 'spec_helper'
shared_examples 'default query config' do
2017-09-10 17:25:29 +05:30
let(:project) { create(:project) }
2019-10-12 21:52:04 +05:30
let(:event) { described_class.new(stage: stage_name, options: { from: 1.day.ago, project: project }) }
2017-08-17 22:00:37 +05:30
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