Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-06-14 00:43:29 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-06-27 22:10:36 +0300
commitd3d0e3dd5de9d00cbb6c8f2ec3c82bfdbb146ff3 (patch)
treea5b8b50a42cc5e02a612ac2cc63ff52b8b221eb0 /spec/lib/gitlab_spec.rb
parent298e4ece30bf0f5d7fefd0314c923ae18715338c (diff)
Update `Gitlab.com?` to support staging
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 c59dfea5c55..c4c107c9eea 100644
--- a/spec/lib/gitlab_spec.rb
+++ b/spec/lib/gitlab_spec.rb
@@ -8,6 +8,12 @@ describe Gitlab, lib: true do
expect(described_class.com?).to eq true
end
+ it 'is true when on staging' do
+ stub_config_setting(url: 'https://staging.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')