Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-12-09 14:41:15 +0300
committerJames Lopez <james@jameslopez.es>2017-01-17 13:32:55 +0300
commit982d5a050667c517bbc996a08ca0922f2c5fbfb4 (patch)
tree785ca35f5b8497fc1d946e77da1f22056a3b1b60 /spec/lib/gitlab/cycle_analytics
parent834bcacbaec837d8ec0a269f111bca769843bcb4 (diff)
refactored metrics fetcher - merged into stage and events
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics')
-rw-r--r--spec/lib/gitlab/cycle_analytics/shared_event_spec.rb5
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