diff options
author | James Lopez <james@jameslopez.es> | 2016-12-01 15:28:24 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 13:32:55 +0300 |
commit | 58dddcdfed6212046447de8b6d304ffd463d0350 (patch) | |
tree | 9615debf7e9d15b346abad7cdbb9e98b435500ed /spec/lib/gitlab/cycle_analytics | |
parent | 69ecd951a9e0acbc31f0a4b9b02e8a1981ceff1e (diff) |
few fixes after merge
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics')
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb b/spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb index 77dbf1c79a5..fb6b6c4a8d2 100644 --- a/spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb @@ -2,9 +2,9 @@ require 'spec_helper' describe Gitlab::CycleAnalytics::StageSummary, models: true do let(:project) { create(:project) } - let(:from) { Time.now } + let(:from) { 1.day.ago } let(:user) { create(:user, :admin) } - subject { described_class.new(project, from: Time.now).data } + subject { described_class.new(project, from: Time.now, current_user: user).data } describe "#new_issues" do it "finds the number of issues created after the 'from date'" do |