Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c299f9aa
Commit
c299f9aa
authored
May 15, 2020
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move variables outside of where
parent
61fffbe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/helpers/visibility_level_helper_spec.rb
spec/helpers/visibility_level_helper_spec.rb
+4
-4
No files found.
spec/helpers/visibility_level_helper_spec.rb
View file @
c299f9aa
...
...
@@ -146,12 +146,12 @@ describe VisibilityLevelHelper do
using
RSpec
::
Parameterized
::
TableSyntax
public_vis
=
Gitlab
::
VisibilityLevel
::
PUBLIC
internal_vis
=
Gitlab
::
VisibilityLevel
::
INTERNAL
private_vis
=
Gitlab
::
VisibilityLevel
::
PRIVATE
# This is a subset of all the permutations
where
(
:requested_level
,
:max_allowed
,
:global_default_level
,
:restricted_levels
,
:expected
)
do
public_vis
=
Gitlab
::
VisibilityLevel
::
PUBLIC
internal_vis
=
Gitlab
::
VisibilityLevel
::
INTERNAL
private_vis
=
Gitlab
::
VisibilityLevel
::
PRIVATE
public_vis
|
public_vis
|
public_vis
|
[]
|
public_vis
public_vis
|
public_vis
|
public_vis
|
[
public_vis
]
|
internal_vis
internal_vis
|
public_vis
|
public_vis
|
[]
|
internal_vis
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment