summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-07-17 14:28:22 +0000
committerMike Greiling <mike@pixelcog.com>2017-07-20 17:04:19 -0500
commit7f86627267a42ae7fea7b03866aaf7193824910b (patch)
treee85dc38a3c1a0f089df069848844f340d4b2a50b /spec
parent658321022b4f80187f76f8b80eb7f95d13cc9f0b (diff)
downloadgitlab-ce-7f86627267a42ae7fea7b03866aaf7193824910b.tar.gz
Merge branch 'ee-2950-fix-namespace-visibility-level-helpers' into 'master'
Promote visibility level helpers from Group to Namespace Closes gitlab-ee#2950 See merge request !12910
Diffstat (limited to 'spec')
-rw-r--r--spec/models/namespace_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index 62c4ea01ce1..89ea5ceda95 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -63,6 +63,14 @@ describe Namespace, models: true do
it { is_expected.to respond_to(:has_parent?) }
end
+ describe 'inclusions' do
+ it { is_expected.to include_module(Gitlab::VisibilityLevel) }
+ end
+
+ describe '#visibility_level_field' do
+ it { expect(namespace.visibility_level_field).to eq(:visibility_level) }
+ end
+
describe '#to_param' do
it { expect(namespace.to_param).to eq(namespace.full_path) }
end