Fix vote specs for mysql

This commit is contained in:
Dmitriy Zaporozhets 2015-01-22 12:08:47 -08:00
parent a5f1b67ed4
commit 3395457acb
1 changed files with 2 additions and 1 deletions

View File

@ -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