Commit 36598012 authored by Lee Tickett's avatar Lee Tickett

Fix false positive in crm_enable group policy spec

parent f8a18573
......@@ -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