mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Fix vote specs for mysql
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user