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
0a5c1b75
Commit
0a5c1b75
authored
Apr 16, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly disable design management when needed
parent
fa1ac789
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spec/policies/project_policy_spec.rb
spec/policies/project_policy_spec.rb
+6
-2
No files found.
spec/policies/project_policy_spec.rb
View file @
0a5c1b75
...
...
@@ -892,6 +892,8 @@ RSpec.describe ProjectPolicy do
end
describe
'design permissions'
do
include
DesignManagementTestHelpers
let
(
:current_user
)
{
guest
}
let
(
:design_permissions
)
do
...
...
@@ -899,12 +901,14 @@ RSpec.describe ProjectPolicy do
end
context
'when design management is not available'
do
before
do
enable_design_management
(
false
)
end
it
{
is_expected
.
not_to
be_allowed
(
*
design_permissions
)
}
end
context
'when design management is available'
do
include
DesignManagementTestHelpers
before
do
enable_design_management
end
...
...
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