Commit 127f288a authored by Douwe Maan's avatar Douwe Maan

Use `to_reference` where possible.

parent 6f356148
......@@ -155,7 +155,7 @@ describe GitPushService do
before do
allow(commit).to receive_messages(
safe_message: "this commit \n mentions ##{issue.iid}",
safe_message: "this commit \n mentions #{issue.to_reference}",
references: [issue],
author_name: commit_author.name,
author_email: commit_author.email
......@@ -272,4 +272,4 @@ describe GitPushService do
service.execute(project, user, @blankrev, @newrev, new_ref)
end
end
end
end
\ No newline at end of file
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