提交 3f0e37f6 编写于 作者: S Sean McGivern

Merge branch '34648-use-stub_application_setting-to-test-support_url' into 'master'

Use stub_application_setting when testing ApplicationHelper#support_url

Closes #34648

See merge request !12627
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册