diff options
author | DJ Mountney <david@twkie.net> | 2016-05-27 19:05:52 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-05-27 19:05:52 -0700 |
commit | 7d57b110934f50225142789a93a0d4f54cf446f7 (patch) | |
tree | 5bda1089b6817a96d400c95b3d0c207a6325076f /spec/mailers | |
parent | 14b0fb516ce857b80ef447109c9dfc9692869148 (diff) | |
download | gitlab-ce-7d57b110934f50225142789a93a0d4f54cf446f7.tar.gz |
Update tests for the current_application_settings request store changes
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index b963a3e0324..818825b1477 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -51,7 +51,7 @@ describe Notify do context 'when enabled email_author_in_body' do before do - allow(current_application_settings).to receive(:email_author_in_body).and_return(true) + allow_any_instance_of(ApplicationSetting).to receive(:email_author_in_body).and_return(true) end it 'contains a link to note author' do @@ -230,7 +230,7 @@ describe Notify do context 'when enabled email_author_in_body' do before do - allow(current_application_settings).to receive(:email_author_in_body).and_return(true) + allow_any_instance_of(ApplicationSetting).to receive(:email_author_in_body).and_return(true) end it 'contains a link to note author' do @@ -454,7 +454,7 @@ describe Notify do context 'when enabled email_author_in_body' do before do - allow(current_application_settings).to receive(:email_author_in_body).and_return(true) + allow_any_instance_of(ApplicationSetting).to receive(:email_author_in_body).and_return(true) end it 'contains a link to note author' do |