diff options
author | Sara Ahbabou <sahbabou@gitlab.com> | 2019-04-12 05:00:50 +0000 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2019-04-12 05:00:50 +0000 |
commit | dc00fa90e95916719bfcfeb5bdca9f0b590ca467 (patch) | |
tree | c8d1debe9c9579ee3e3095361ab250635bcd87f5 /spec/lib | |
parent | d25cdca68fb945db6b60cf4da60bc6ed503bea49 (diff) | |
download | gitlab-ce-dc00fa90e95916719bfcfeb5bdca9f0b590ca467.tar.gz |
Squashed commits and modified visibility level output
Added changelog and rebased
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/visibility_level_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/visibility_level_spec.rb b/spec/lib/gitlab/visibility_level_spec.rb index 2c1146ceff5..0a170a157fe 100644 --- a/spec/lib/gitlab/visibility_level_spec.rb +++ b/spec/lib/gitlab/visibility_level_spec.rb @@ -85,4 +85,12 @@ describe Gitlab::VisibilityLevel do .to eq(described_class::PRIVATE) end end + + describe '.valid_level?' do + it 'returns true when visibility is valid' do + expect(described_class.valid_level?(described_class::PRIVATE)).to be_truthy + expect(described_class.valid_level?(described_class::INTERNAL)).to be_truthy + expect(described_class.valid_level?(described_class::PUBLIC)).to be_truthy + end + end end |