diff --git a/spec/lib/votes_spec.rb b/spec/lib/votes_spec.rb index 63692814b97..2c01a34756d 100644 --- a/spec/lib/votes_spec.rb +++ b/spec/lib/votes_spec.rb @@ -178,7 +178,8 @@ describe Issue, 'Votes' do end def add_note(text, author = issue.author) + created_at = Time.now - 1.hour + Note.count.seconds issue.notes << create(:note, note: text, project: issue.project, - author_id: author.id) + author_id: author.id, created_at: created_at) end end