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
bbd441bd
Commit
bbd441bd
authored
Nov 15, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove epics policy tests to avoid conflicts with ce
parent
a41e398b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
225 additions
and
241 deletions
+225
-241
spec/policies/group_policy_spec.rb
spec/policies/group_policy_spec.rb
+225
-241
No files found.
spec/policies/group_policy_spec.rb
View file @
bbd441bd
...
...
@@ -26,7 +26,6 @@ describe GroupPolicy do
:admin_namespace
,
:admin_group_member
,
:change_visibility_level
,
:destroy_epic
,
(
Gitlab
::
Database
.
postgresql?
?
:create_subgroup
:
nil
)
].
compact
end
...
...
@@ -49,20 +48,6 @@ describe GroupPolicy do
permissions
.
each
{
|
p
|
is_expected
.
not_to
be_allowed
(
p
)
}
end
context
'with epics feature disabled'
do
let
(
:current_user
)
{
owner
}
it
'does not allow to read or manage epics'
do
expect_disallowed
(
:read_epic
)
end
end
context
'with epics feature enabled'
do
before
do
allow
(
License
).
to
receive
(
:feature_available?
).
and_call_original
allow
(
License
).
to
receive
(
:feature_available?
).
with
(
:epics
).
and_return
(
true
)
end
context
'with no user'
do
let
(
:current_user
)
{
nil
}
...
...
@@ -462,5 +447,4 @@ describe GroupPolicy do
it
{
expect_disallowed
(
:change_share_with_group_lock
)
}
end
end
end
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