Commit 10a46510 authored by Kenneth Chu's avatar Kenneth Chu

Add test for host value containing an underscore

parent 5e709a15
......@@ -63,6 +63,12 @@ RSpec.describe API::Helpers::RelatedResourcesHelpers do
is_expected.to start_with('https://')
end
it 'accepts the host if it contains an underscore' do
stub_default_url_options(host: 'w_ww.example.com')
is_expected.to start_with('http://w_ww.example.com/')
end
it 'accepts port to be nil' do
stub_default_url_options(port: nil)
......
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