Fix vote specs for mysql
This commit is contained in:
parent
a5f1b67ed4
commit
3395457acb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue