summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-02-25 21:36:28 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-02-25 21:41:16 +0800
commitb81e7c52d3e82e0c053a39fac9c4fe21abcf6103 (patch)
tree9965938a6e33235507e4de20b476924e5a783cae /spec
parent992183534dd1af54bf891789aca5777ea91c0942 (diff)
downloadgitlab-ce-b81e7c52d3e82e0c053a39fac9c4fe21abcf6103.tar.gz
Enable `:read_list` when `:read_group` is enabled
Diffstat (limited to 'spec')
-rw-r--r--spec/policies/group_policy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/policies/group_policy_spec.rb b/spec/policies/group_policy_spec.rb
index be1804c5ce0..af6d6f084a9 100644
--- a/spec/policies/group_policy_spec.rb
+++ b/spec/policies/group_policy_spec.rb
@@ -83,7 +83,7 @@ describe GroupPolicy do
end
it do
- expect_allowed(:read_group, :read_label)
+ expect_allowed(:read_group, :read_list, :read_label)
end
context 'in subgroups', :nested_groups do
@@ -91,7 +91,7 @@ describe GroupPolicy do
let(:project) { create(:project, namespace: subgroup) }
it do
- expect_allowed(:read_group, :read_label)
+ expect_allowed(:read_group, :read_list, :read_label)
end
end
end