summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-11-30 17:57:12 +0100
committerRémy Coutable <remy@rymai.me>2017-12-01 18:41:04 +0100
commit86af197cc2cbe28f011421b5c7575ad17273bda9 (patch)
treed16e38514ceb1346b6a6ebde722a1814189b0d46
parente2809a1649a1c024b31d090c67c97cd4f9922ba4 (diff)
downloadgitlab-ce-86af197cc2cbe28f011421b5c7575ad17273bda9.tar.gz
Stop calling #strip in a commit title in Notify specs40691-upgrade-rails-to-4-2-10
Signed-off-by: Rémy Coutable <remy@rymai.me>
-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 f942a22b6d1..e1d71a9573b 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -602,7 +602,7 @@ describe Notify do
it 'has the correct subject and body' do
aggregate_failures do
- is_expected.to have_subject("Re: #{project.name} | #{commit.title.strip} (#{commit.short_id})")
+ is_expected.to have_subject("Re: #{project.name} | #{commit.title} (#{commit.short_id})")
is_expected.to have_body_text(commit.short_id)
end
end
@@ -712,7 +712,7 @@ describe Notify do
it_behaves_like 'a user cannot unsubscribe through footer link'
it 'has the correct subject' do
- is_expected.to have_subject "Re: #{project.name} | #{commit.title.strip} (#{commit.short_id})"
+ is_expected.to have_subject "Re: #{project.name} | #{commit.title} (#{commit.short_id})"
end
it 'contains a link to the commit' do