summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab_spec.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-03-04 08:20:37 +0000
committerPhil Hughes <me@iamphill.com>2019-03-04 08:20:37 +0000
commitec7835946a0c981e9b263d2840e68f16eb1b3789 (patch)
treef02fd29d0367b55a2eb5f701015d73c28a63413e /spec/lib/gitlab_spec.rb
parent615c14b28990489d99371b7ffdb57fe54d463e64 (diff)
downloadgitlab-ce-ec7835946a0c981e9b263d2840e68f16eb1b3789.tar.gz
Creates a function to check if repo is EE
Adds EE information to gon Creates a global vue mixin
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r--spec/lib/gitlab_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb
index 5f7a0cca351..8232715d00e 100644
--- a/spec/lib/gitlab_spec.rb
+++ b/spec/lib/gitlab_spec.rb
@@ -95,4 +95,18 @@ describe Gitlab do
expect(described_class.com?).to eq false
end
end
+
+ describe '.ee?' do
+ it 'returns true when using Enterprise Edition' do
+ stub_const('License', Class.new)
+
+ expect(described_class.ee?).to eq(true)
+ end
+
+ it 'returns false when using Community Edition' do
+ hide_const('License')
+
+ expect(described_class.ee?).to eq(false)
+ end
+ end
end