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
b32b80a0
Commit
b32b80a0
authored
Oct 14, 2020
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
78583b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
spec/lib/gitlab/visibility_level_checker_spec.rb
spec/lib/gitlab/visibility_level_checker_spec.rb
+2
-4
No files found.
spec/lib/gitlab/visibility_level_checker_spec.rb
View file @
b32b80a0
...
...
@@ -7,11 +7,9 @@ RSpec.describe Gitlab::VisibilityLevelChecker do
let
(
:project
)
{
create
(
:project
)
}
let
(
:override_params
)
{
{}
}
subject
(
:visibility_level_checker
)
{
described_class
.
new
(
user
,
project
,
project_params:
override_params
)
}
let
(
:result
)
{
subject
.
level_restricted?
}
describe
'#level_restricted?'
do
subject
(
:result
)
{
described_class
.
new
(
user
,
project
,
project_params:
override_params
).
level_restricted?
}
context
'when visibility level is allowed'
do
it
'returns false with nil for visibility level'
do
expect
(
result
.
restricted?
).
to
eq
(
false
)
...
...
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