summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-12-10 13:59:17 +0100
committerRémy Coutable <remy@rymai.me>2018-12-10 13:59:33 +0100
commitd78272a13b50e912b1ac946da8eec2e75bc6eb41 (patch)
tree7786eb58b9c8ed4859a4cf5191a70733a8fdfddd /spec/mailers
parent5a727a4d36674d02369f4ef8ed257ea9d17570e7 (diff)
downloadgitlab-ce-d78272a13b50e912b1ac946da8eec2e75bc6eb41.tar.gz
Fix a frozen string error in app/mailers/notify.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/notify_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index 150c00e4bfe..1d17aec0ded 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -28,8 +28,8 @@ describe Notify do
end
def have_referable_subject(referable, reply: false)
- prefix = referable.project ? "#{referable.project.name} | " : ''
- prefix.prepend('Re: ') if reply
+ prefix = (referable.project ? "#{referable.project.name} | " : '').freeze
+ prefix = "Re: #{prefix}" if reply
suffix = "#{referable.title} (#{referable.to_reference})"