diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-04 13:10:43 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-04 13:54:35 +0200 |
commit | 4818f904c2150411e4d84e67abe2fcaa45448abe (patch) | |
tree | 72f868134658aa7e5b61966e7c41b7914dd6ec5c | |
parent | 75ac425c94d1763088040ff526b590f5ffe03f85 (diff) | |
download | gitlab-ce-4818f904c2150411e4d84e67abe2fcaa45448abe.tar.gz |
Use stub_application_setting when testing ApplicationHelper#support_url34648-use-stub_application_setting-to-test-support_url
Signed-off-by: Rémy Coutable <remy@rymai.me>
-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 |