diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 12:08:47 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-22 12:08:47 -0800 |
commit | 3395457acbc8ec898edae622eedc20c8fcd6b8fa (patch) | |
tree | 9b4a22ca40e90e904f410ae27f34ae584ea1fe0f /spec/lib | |
parent | a5f1b67ed4d5c46d1c243260cbfe86733fee075e (diff) | |
download | gitlab-ce-3395457acbc8ec898edae622eedc20c8fcd6b8fa.tar.gz |
Fix vote specs for mysql
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/votes_spec.rb | 3 |
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 |