summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab_spec.rb
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-04-13 14:20:29 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-04-13 14:52:33 -0300
commit2c8d4f1a450f15ea7e5bd731c0149287ca8e4e73 (patch)
tree90640147136a58cfb2e72819ffbe82a639b100f9 /spec/lib/gitlab_spec.rb
parent3a1b961dfaec131cad7472fea202d4092c1880d6 (diff)
downloadgitlab-ce-2c8d4f1a450f15ea7e5bd731c0149287ca8e4e73.tar.gz
Backport GitLab domain helper methods
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r--spec/lib/gitlab_spec.rb6
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')