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
db5791bc
Commit
db5791bc
authored
May 26, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
License plan should not affect policy check
parent
787cf4d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec/policies/project_policy_spec.rb
spec/policies/project_policy_spec.rb
+4
-0
No files found.
spec/policies/project_policy_spec.rb
View file @
db5791bc
...
@@ -10,6 +10,10 @@ describe ProjectPolicy, models: true do
...
@@ -10,6 +10,10 @@ describe ProjectPolicy, models: true do
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
,
namespace:
owner
.
namespace
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
,
namespace:
owner
.
namespace
)
}
before
do
allow_any_instance_of
(
License
).
to
receive
(
:feature_available?
)
{
true
}
end
let
(
:guest_permissions
)
do
let
(
:guest_permissions
)
do
%i[
%i[
read_project read_board read_list read_wiki read_issue read_label
read_project read_board read_list read_wiki read_issue read_label
...
...
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