diff options
author | Rémy Coutable <remy@rymai.me> | 2018-04-16 11:22:55 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-04-16 11:22:55 +0300 |
commit | c3e26860be156314e733a6dfb986c91fc55766f5 (patch) | |
tree | 16d68e023908dd2297b9b4868e2071bded1b22dd /spec/lib | |
parent | 37c8c97c22a66494257e13420ceac1e372b83abf (diff) | |
parent | 2c8d4f1a450f15ea7e5bd731c0149287ca8e4e73 (diff) |
Merge branch 'osw-backport-gl-subdomain-method' into 'master'
Backport GitLab domain helper methods
See merge request gitlab-org/gitlab-ce!18376
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index f97136f0191..bd443a5d9e7 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -14,6 +14,12 @@ describe Gitlab do expect(described_class.com?).to eq true end + it 'is true when on other gitlab subdomain' do + stub_config_setting(url: 'https://example.gitlab.com') + + expect(described_class.com?).to eq true + end + it 'is false when not on GitLab.com' do stub_config_setting(url: 'http://example.com') |