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
diff options
context:
space:
mode:
authorFu Xu <fuxu@fuxu.name>2016-09-26 20:06:57 +0300
committerFu Xu <fuxu@fuxu.name>2016-10-03 13:07:28 +0300
commit785094e201a7d3e7c88f9556da8d9539281a36d5 (patch)
tree08be5764519d1bd88b2215ec48e22e3c799d386f /spec/mailers/notify_spec.rb
parentf3f7f3fe8410cd8213cbc9b736d005ac85cbe980 (diff)
create new test in `spec/mailers/notify_spec.rb`
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r--spec/mailers/notify_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index cd8578b6f49..03e0bfd3614 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -1094,4 +1094,15 @@ describe Notify do
is_expected.to have_body_text /#{diff_path}/
end
end
+
+ describe 'email has correct subject' do
+ let(:gitlab_subject_suffix) { Gitlab.config.gitlab.email_subject_suffix }
+
+ it 'has correct suffix' do
+ if gitlab_subject_suffix.length > 0
+ is_expected.to have_subject gitlab_subject_suffix
+ end
+ end
+ end
+
end