summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-08-22 18:34:27 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-08-22 18:34:27 +0100
commit6426168dd6c94d9e45c1bb4a055ea285b199740a (patch)
treec84a55de5cff9aca513d9966569939643e5ffa07
parentd3005c98fabe47fe0feecc299cc05cf7642457a3 (diff)
downloadgitlab-ce-6426168dd6c94d9e45c1bb4a055ea285b199740a.tar.gz
Fixes group policy specs on MySQL.fix-group-policy-specs-on-mysql
-rw-r--r--spec/policies/group_policy_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/policies/group_policy_spec.rb b/spec/policies/group_policy_spec.rb
index cf420ae3ea6..7f832bfa563 100644
--- a/spec/policies/group_policy_spec.rb
+++ b/spec/policies/group_policy_spec.rb
@@ -105,6 +105,8 @@ describe GroupPolicy do
let(:current_user) { owner }
it do
+ allow(Group).to receive(:supports_nested_groups?).and_return(true)
+
expect_allowed(:read_group)
expect_allowed(*reporter_permissions)
expect_allowed(*master_permissions)
@@ -116,6 +118,8 @@ describe GroupPolicy do
let(:current_user) { admin }
it do
+ allow(Group).to receive(:supports_nested_groups?).and_return(true)
+
expect_allowed(:read_group)
expect_allowed(*reporter_permissions)
expect_allowed(*master_permissions)
@@ -229,6 +233,8 @@ describe GroupPolicy do
let(:current_user) { owner }
it do
+ allow(Group).to receive(:supports_nested_groups?).and_return(true)
+
expect_allowed(:read_group)
expect_allowed(*reporter_permissions)
expect_allowed(*master_permissions)