summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-07-03 14:08:46 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-06 09:42:21 +0200
commita57ec31e4575d5633341143c7b3a4f0a4350c1ec (patch)
tree5874d93b90059c886389b219ec1f210b7bb96b2a /spec/policies
parent83f79ced3fd98031194e5667c4d80f66d7987c67 (diff)
downloadgitlab-ce-a57ec31e4575d5633341143c7b3a4f0a4350c1ec.tar.gz
Create cross project group features
This allows us to check specific abilities in views, while still enabling/disabling them at once.
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/group_policy_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/policies/group_policy_spec.rb b/spec/policies/group_policy_spec.rb
index 9b5c290b9f9..d6d340bd806 100644
--- a/spec/policies/group_policy_spec.rb
+++ b/spec/policies/group_policy_spec.rb
@@ -9,7 +9,11 @@ describe GroupPolicy do
let(:admin) { create(:admin) }
let(:group) { create(:group, :private) }
- let(:guest_permissions) { [:read_label, :read_group, :upload_file, :read_namespace] }
+ let(:guest_permissions) do
+ [:read_label, :read_group, :upload_file, :read_namespace, :read_group_activity,
+ :read_group_issues, :read_group_boards, :read_group_labels, :read_group_milestones,
+ :read_group_merge_requests]
+ end
let(:reporter_permissions) { [:admin_label] }