Commit 762d9a60 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch '2256-fix-group-policy-spec' into 'master'

Fix false positive in crm_enable group policy spec

See merge request gitlab-org/gitlab!78546
parents ed96cd1c 36598012
......@@ -1167,9 +1167,13 @@ RSpec.describe GroupPolicy do
end
context 'when crm_enabled is false' do
let(:group) { create(:group, :crm_enabled) }
let(:current_user) { owner }
before_all do
group.crm_settings.enabled = false
group.crm_settings.save!
end
it { is_expected.to be_disallowed(:read_crm_contact) }
it { is_expected.to be_disallowed(:read_crm_organization) }
it { is_expected.to be_disallowed(:admin_crm_contact) }
......
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