diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 15:44:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-19 15:44:42 +0000 |
commit | 4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch) | |
tree | 5423a1c7516cffe36384133ade12572cf709398d /spec/lib/api/helpers/related_resources_helpers_spec.rb | |
parent | e570267f2f6b326480d284e0164a6464ba4081bc (diff) | |
download | gitlab-ce-4555e1b21c365ed8303ffb7a3325d773c9b8bf31.tar.gz |
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'spec/lib/api/helpers/related_resources_helpers_spec.rb')
-rw-r--r-- | spec/lib/api/helpers/related_resources_helpers_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/api/helpers/related_resources_helpers_spec.rb b/spec/lib/api/helpers/related_resources_helpers_spec.rb index a0dc69536b4..8b2e95c0434 100644 --- a/spec/lib/api/helpers/related_resources_helpers_spec.rb +++ b/spec/lib/api/helpers/related_resources_helpers_spec.rb @@ -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) |