summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics/shared_event_spec.rb')
-rw-r--r--spec/lib/gitlab/cycle_analytics/shared_event_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb b/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
index 1e76edce633..7019e4c3351 100644
--- a/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
+++ b/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb
@@ -1,19 +1,21 @@
require 'spec_helper'
shared_examples 'default query config' do
+ let(:event) { described_class.new(project: double, options: {}) }
+
it 'has the start attributes' do
- expect(described_class.start_time_attrs).not_to be_nil
+ expect(event.start_time_attrs).not_to be_nil
end
it 'has the stage attribute' do
- expect(described_class.stage).not_to be_nil
+ expect(event.stage).not_to be_nil
end
it 'has the end attributes' do
- expect(described_class.end_time_attrs).not_to be_nil
+ expect(event.end_time_attrs).not_to be_nil
end
it 'has the projection attributes' do
- expect(described_class.projections).not_to be_nil
+ expect(event.projections).not_to be_nil
end
end