Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlex Elman <aelman@indeed.com>2014-06-11 20:37:29 +0400
committerAlex Elman <aelman@indeed.com>2014-06-15 18:53:00 +0400
commite6722cb1786f7765228c2ac81f337ec5d09f9d19 (patch)
tree2ab5c281fc66b8210fa3e8c362fdf7fb853ec39a /spec
parent46e33ed3714e876030e796bd5ef53248a8bb79e1 (diff)
Provide better email subject lines from email on push service
If one commit is pushed, display the commit message in the subject line. Otherwise display the number of commits pushed to the repository.
Diffstat (limited to 'spec')
-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 453bf2b3e94..ab26b290d77 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -537,7 +537,7 @@ describe Notify do
end
it 'has the correct subject' do
- should have_subject /New push to repository/
+ should have_subject /#{commits.length} new commits pushed to repository/
end
it 'includes commits list' do
@@ -573,7 +573,7 @@ describe Notify do
end
it 'has the correct subject' do
- should have_subject /New push to repository/
+ should have_subject /#{commits.first.title}/
end
it 'includes commits list' do