summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-13 09:37:42 +0000
committerDouwe Maan <douwe@gitlab.com>2015-10-13 09:37:42 +0000
commit127f288afbc454975bee910cee22f330a86c0e1b (patch)
tree32d99ca6c8ee1e2aa44748a0576801d14b4000e1 /spec
parent6f35614852a7cf360bbc4af6ba6c450d8667c04e (diff)
downloadgitlab-ce-127f288afbc454975bee910cee22f330a86c0e1b.tar.gz
Use `to_reference` where possible.
Diffstat (limited to 'spec')
-rw-r--r--spec/services/git_push_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb
index bb620783410..93bac384a68 100644
--- a/spec/services/git_push_service_spec.rb
+++ b/spec/services/git_push_service_spec.rb
@@ -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