From 3395457acbc8ec898edae622eedc20c8fcd6b8fa Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 22 Jan 2015 12:08:47 -0800 Subject: [PATCH] Fix vote specs for mysql --- spec/lib/votes_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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