summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-22 12:08:47 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-22 12:08:47 -0800
commit3395457acbc8ec898edae622eedc20c8fcd6b8fa (patch)
tree9b4a22ca40e90e904f410ae27f34ae584ea1fe0f
parenta5f1b67ed4d5c46d1c243260cbfe86733fee075e (diff)
downloadgitlab-ce-3395457acbc8ec898edae622eedc20c8fcd6b8fa.tar.gz
Fix vote specs for mysql
-rw-r--r--spec/lib/votes_spec.rb3
1 files changed, 2 insertions, 1 deletions
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