diff options
author | James Lopez <james@jameslopez.es> | 2016-11-17 18:00:37 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 18:00:37 +0100 |
commit | d5b673da79c7c350090dc9982a9a2477fac56eb5 (patch) | |
tree | 8ed8c21acc48e8ca62c6367f4c6f35a9fce04a2f /spec/lib/gitlab/cycle_analytics/events_spec.rb | |
parent | 9c995725ea6eb8d97f4b7dfbd129e3530b9b1235 (diff) | |
download | gitlab-ce-d5b673da79c7c350090dc9982a9a2477fac56eb5.tar.gz |
more refactoring and added some auth checks
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics/events_spec.rb')
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/events_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/events_spec.rb b/spec/lib/gitlab/cycle_analytics/events_spec.rb index 8e2d2f8b5bd..9aeaa6b3ee8 100644 --- a/spec/lib/gitlab/cycle_analytics/events_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb @@ -6,7 +6,7 @@ describe Gitlab::CycleAnalytics::Events do let(:user) { create(:user, :admin) } let!(:context) { create(:issue, project: project, created_at: 2.days.ago) } - subject { described_class.new(project: project, options: { from: from_date }) } + subject { described_class.new(project: project, options: { from: from_date, current_user: user }) } before do allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([context]) |