diff options
author | Fu Xu <fuxu@fuxu.name> | 2016-09-30 17:46:37 +0800 |
---|---|---|
committer | Fu Xu <fuxu@fuxu.name> | 2016-10-03 18:07:28 +0800 |
commit | 76463c2cb460099559b8544396cf1a6656895e8d (patch) | |
tree | b6b11a32e81e8e6373a6e276f99295a530c25f3c /spec/mailers/notify_spec.rb | |
parent | 064eb2caa671cdd18cd051e49ff2086d004e5516 (diff) | |
download | gitlab-ce-76463c2cb460099559b8544396cf1a6656895e8d.tar.gz |
override subject method in devise mailer
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r-- | spec/mailers/notify_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index cd8578b6f49..0e4130e8a3a 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -831,6 +831,7 @@ describe Notify do let(:user) { create(:user, email: 'old-email@mail.com') } before do + stub_config_setting(email_subject_suffix: 'A Nice Suffix') perform_enqueued_jobs do user.email = "new-email@mail.com" user.save @@ -847,7 +848,7 @@ describe Notify do end it 'has the correct subject' do - is_expected.to have_subject "Confirmation instructions" + is_expected.to have_subject /^Confirmation instructions/ end it 'includes a link to the site' do |