diff options
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics/shared_event_spec.rb')
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/shared_event_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb b/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb index 725f9a558f5..03b013ffae8 100644 --- a/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/shared_event_spec.rb @@ -8,10 +8,11 @@ shared_examples 'default query config' do stage: stage_name) end - let(:event) { described_class.new(fetcher: fetcher, options: {}, stage: stage_name) } + let(project) + let(:event) { described_class.new(project: project, stage: stage_name, options: {}) } it 'has the stage attribute' do - expect(event.stage).not_to be_nil + expect(event.name).not_to be_nil end it 'has the projection attributes' do |