summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-14 15:45:06 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-14 16:32:11 +0200
commit5662b2413206db20f935a0dffb5f12debd248447 (patch)
tree1101ee8fffb97ea5242b440acc0533fc0dca1941 /spec/models/commit_spec.rb
parentbf7932bd06e45f82c7aa80373aa3aa1bf52d4d88 (diff)
downloadgitlab-ce-5662b2413206db20f935a0dffb5f12debd248447.tar.gz
Don't use HTML ellipsis in EmailsOnPush subject truncated commit message.emailsonpush-hellip
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 8b3d88640da..11cc7762ce4 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -14,7 +14,7 @@ describe Commit do
message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sodales id felis id blandit. Vivamus egestas lacinia lacus, sed rutrum mauris.'
allow(commit).to receive(:safe_message).and_return(message)
- expect(commit.title).to eq("#{message[0..79]}&hellip;")
+ expect(commit.title).to eq("#{message[0..79]}…")
end
it "truncates a message with a newline before 80 characters at the newline" do