diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-22 18:34:27 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-22 18:34:27 +0100 |
commit | 6426168dd6c94d9e45c1bb4a055ea285b199740a (patch) | |
tree | c84a55de5cff9aca513d9966569939643e5ffa07 | |
parent | d3005c98fabe47fe0feecc299cc05cf7642457a3 (diff) | |
download | gitlab-ce-6426168dd6c94d9e45c1bb4a055ea285b199740a.tar.gz |
Fixes group policy specs on MySQL.fix-group-policy-specs-on-mysql
-rw-r--r-- | spec/policies/group_policy_spec.rb | 6 |
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) |