diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-04 14:10:43 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-04 14:54:35 +0300 |
commit | 4818f904c2150411e4d84e67abe2fcaa45448abe (patch) | |
tree | 72f868134658aa7e5b61966e7c41b7914dd6ec5c /spec/helpers/application_helper_spec.rb | |
parent | 75ac425c94d1763088040ff526b590f5ffe03f85 (diff) |
Use stub_application_setting when testing ApplicationHelper#support_url
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 56daeffde27..f161dbb4cf0 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -292,7 +292,7 @@ describe ApplicationHelper do let(:alternate_url) { 'http://company.example.com/getting-help' } before do - allow(current_application_settings).to receive(:help_page_support_url) { alternate_url } + stub_application_setting(help_page_support_url: alternate_url) end it 'returns the alternate support url' do |