Commit d8ce4f94 authored by Stan Hu's avatar Stan Hu

Remove date from author line since that is already present in `created_at`

parent 61f5c2e3
......@@ -303,7 +303,7 @@ module Gitlab
unless author
author = project.creator_id
note = "*By #{comment.author_username} (#{comment.author_email}) on #{comment.created_at}*\n\n"
note = "*By #{comment.author_username} (#{comment.author_email})*\n\n"
end
note +=
......
......@@ -169,7 +169,7 @@ describe Gitlab::BitbucketServerImport::Importer do
reply_note = notes.last
# Make sure author and reply context is included
expect(reply_note.note).to start_with("*By #{reply.author_username} (#{reply.author_email}) on #{reply.created_at}*\n\n")
expect(reply_note.note).to start_with("*By #{reply.author_username} (#{reply.author_email})*\n\n")
expect(reply_note.note).to end_with("> #{inline_note.note}\n\n#{reply.note}")
expect(reply_note.author).to eq(project.owner)
expect(reply_note.created_at).to eq(reply.created_at)
......
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