diff options
author | Fu Xu <fuxu@fuxu.name> | 2016-09-27 20:18:10 +0800 |
---|---|---|
committer | Fu Xu <fuxu@fuxu.name> | 2016-10-03 18:07:28 +0800 |
commit | 2a438f452c920e57545add519ed7b7a2c15e660e (patch) | |
tree | 202387c80c8811cf52dbbdafc91de789b4f720b2 /spec/mailers/notify_spec.rb | |
parent | 89dc70df4614daf95a2284d8171db2a9115ec46e (diff) | |
download | gitlab-ce-2a438f452c920e57545add519ed7b7a2c15e660e.tar.gz |
stub config settings in spec
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r-- | spec/mailers/notify_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 3585432ec75..8dc5e0b34d2 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -1096,12 +1096,9 @@ describe Notify do 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 + stub_config_setting(email_subject_suffix: 'A Nice Suffix') + is_expected.to have_subject /\| A Nice Suffix$/ end end end |