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
fff2b739
Commit
fff2b739
authored
Dec 01, 2021
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use let_it_be for policy tests
Also change type to UserNamespace to match class
parent
95f43e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/policies/namespaces/user_namespace_policy_spec.rb
spec/policies/namespaces/user_namespace_policy_spec.rb
+4
-4
No files found.
spec/policies/namespaces/user_namespace_policy_spec.rb
View file @
fff2b739
...
...
@@ -3,10 +3,10 @@
require
'spec_helper'
RSpec
.
describe
Namespaces
::
UserNamespacePolicy
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:owner
)
{
create
(
:user
)
}
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:namespace
)
{
create
(
:
namespace
,
owner:
owner
)
}
let
_it_be
(
:user
)
{
create
(
:user
)
}
let
_it_be
(
:owner
)
{
create
(
:user
)
}
let
_it_be
(
:admin
)
{
create
(
:admin
)
}
let
_it_be
(
:namespace
)
{
create
(
:user_
namespace
,
owner:
owner
)
}
let
(
:owner_permissions
)
{
[
:owner_access
,
:create_projects
,
:admin_namespace
,
:read_namespace
,
:read_statistics
,
:transfer_projects
,
:create_package_settings
,
:read_package_settings
]
}
...
...
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