diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-28 12:17:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-28 12:17:26 +0000 |
commit | d6ce16a4070112512d792f7ab66fdca4764cbf2c (patch) | |
tree | a85a3c45b5fb1bfd66badf100198cbc0036227e9 /spec/lib/gitlab_spec.rb | |
parent | fa4a0663e8c12b7b80e9e7edec99e6ca5a04a253 (diff) | |
download | gitlab-ce-d6ce16a4070112512d792f7ab66fdca4764cbf2c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index 49ba4debe31..57a4bdc9bb5 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -99,6 +99,13 @@ RSpec.describe Gitlab do expect(described_class.com?).to eq true end + it 'is true when on other gitlab subdomain with hyphen' do + url_with_subdomain = Gitlab::Saas.com_url.gsub('https://', 'https://test-example.') + stub_config_setting(url: url_with_subdomain) + + expect(described_class.com?).to eq true + end + it 'is false when not on GitLab.com' do stub_config_setting(url: 'http://example.com') |