summaryrefslogtreecommitdiff
path: root/spec/helpers/blame_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/blame_helper_spec.rb')
-rw-r--r--spec/helpers/blame_helper_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/helpers/blame_helper_spec.rb b/spec/helpers/blame_helper_spec.rb
index 6371c2b63ce..d305c4c595e 100644
--- a/spec/helpers/blame_helper_spec.rb
+++ b/spec/helpers/blame_helper_spec.rb
@@ -11,6 +11,7 @@ RSpec.describe BlameHelper do
Time.zone.local(2013, 2, 24, 0, 0, 0),
Time.zone.local(2010, 9, 22, 0, 0, 0)]
end
+
let(:blame_groups) do
[
{ commit: double(committed_date: dates[0]) },
@@ -57,6 +58,7 @@ RSpec.describe BlameHelper do
project = double(created_at: now)
helper.age_map_duration(today_blame_groups, project)
end
+
let(:today_blame_groups) { [{ commit: double(committed_date: now) }] }
let(:now) { Time.zone.now }