Commit 6426168d authored by Tiago Botelho's avatar Tiago Botelho

Fixes group policy specs on MySQL.

parent d3005c98
...@@ -105,6 +105,8 @@ describe GroupPolicy do ...@@ -105,6 +105,8 @@ describe GroupPolicy do
let(:current_user) { owner } let(:current_user) { owner }
it do it do
allow(Group).to receive(:supports_nested_groups?).and_return(true)
expect_allowed(:read_group) expect_allowed(:read_group)
expect_allowed(*reporter_permissions) expect_allowed(*reporter_permissions)
expect_allowed(*master_permissions) expect_allowed(*master_permissions)
...@@ -116,6 +118,8 @@ describe GroupPolicy do ...@@ -116,6 +118,8 @@ describe GroupPolicy do
let(:current_user) { admin } let(:current_user) { admin }
it do it do
allow(Group).to receive(:supports_nested_groups?).and_return(true)
expect_allowed(:read_group) expect_allowed(:read_group)
expect_allowed(*reporter_permissions) expect_allowed(*reporter_permissions)
expect_allowed(*master_permissions) expect_allowed(*master_permissions)
...@@ -229,6 +233,8 @@ describe GroupPolicy do ...@@ -229,6 +233,8 @@ describe GroupPolicy do
let(:current_user) { owner } let(:current_user) { owner }
it do it do
allow(Group).to receive(:supports_nested_groups?).and_return(true)
expect_allowed(:read_group) expect_allowed(:read_group)
expect_allowed(*reporter_permissions) expect_allowed(*reporter_permissions)
expect_allowed(*master_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