diff options
author | James Lopez <james@jameslopez.es> | 2017-02-07 09:29:34 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-02-07 09:29:34 +0100 |
commit | bf05c7e035459cdf554b6d651b57ab82031a6bf3 (patch) | |
tree | aeb44b17cb66ca00febdb135c319b10eaa72c67e /spec/lib | |
parent | 682e354df649c4aad7b28e6fd16aae3eccbf7e08 (diff) | |
download | gitlab-ce-bf05c7e035459cdf554b6d651b57ab82031a6bf3.tar.gz |
fix spec
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb b/spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb index 4aac63e54e2..c455cd9b942 100644 --- a/spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb @@ -6,10 +6,11 @@ describe Gitlab::CycleAnalytics::BaseEventFetcher do let(:user) { create(:user, :admin) } let(:start_time_attrs) { Issue.arel_table[:created_at] } let(:end_time_attrs) { [Issue::Metrics.arel_table[:first_associated_with_milestone_at]] } - let(:options) { { start_time_attrs: start_time_attrs, - end_time_attrs: end_time_attrs, - from: 30.days.ago } } - + let(:options) do + { start_time_attrs: start_time_attrs, + end_time_attrs: end_time_attrs, + from: 30.days.ago } + end subject do described_class.new(project: project, |