Commit 4818f904 authored by Rémy Coutable's avatar Rémy Coutable

Use stub_application_setting when testing ApplicationHelper#support_url

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 75ac425c
...@@ -292,7 +292,7 @@ describe ApplicationHelper do ...@@ -292,7 +292,7 @@ describe ApplicationHelper do
let(:alternate_url) { 'http://company.example.com/getting-help' } let(:alternate_url) { 'http://company.example.com/getting-help' }
before do before do
allow(current_application_settings).to receive(:help_page_support_url) { alternate_url } stub_application_setting(help_page_support_url: alternate_url)
end end
it 'returns the alternate support url' do it 'returns the alternate support url' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment