Commit 8c09d090 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix-group-policy-specs-on-mysql' into 'master'

Fixes group policy specs on MySQL.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/36810

See merge request !13747
parents df51a800 6426168d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment