diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-04-13 20:20:29 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-04-13 20:52:33 +0300 |
commit | 2c8d4f1a450f15ea7e5bd731c0149287ca8e4e73 (patch) | |
tree | 90640147136a58cfb2e72819ffbe82a639b100f9 /spec/lib | |
parent | 3a1b961dfaec131cad7472fea202d4092c1880d6 (diff) |
Backport GitLab domain helper methods
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') |