BigW Consortium Gitlab

Commit 3395457a by Dmitriy Zaporozhets

Fix vote specs for mysql

parent a5f1b67e
...@@ -178,7 +178,8 @@ describe Issue, 'Votes' do ...@@ -178,7 +178,8 @@ describe Issue, 'Votes' do
end end
def add_note(text, author = issue.author) 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, issue.notes << create(:note, note: text, project: issue.project,
author_id: author.id) author_id: author.id, created_at: created_at)
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment