Commit bbd441bd authored by Jarka Kadlecova's avatar Jarka Kadlecova

Remove epics policy tests to avoid conflicts with ce

parent a41e398b
......@@ -26,7 +26,6 @@ describe GroupPolicy do
:admin_namespace,
:admin_group_member,
:change_visibility_level,
:destroy_epic,
(Gitlab::Database.postgresql? ? :create_subgroup : nil)
].compact
end
......@@ -49,20 +48,6 @@ describe GroupPolicy do
permissions.each { |p| is_expected.not_to be_allowed(p) }
end
context 'with epics feature disabled' do
let(:current_user) { owner }
it 'does not allow to read or manage epics' do
expect_disallowed(:read_epic)
end
end
context 'with epics feature enabled' do
before do
allow(License).to receive(:feature_available?).and_call_original
allow(License).to receive(:feature_available?).with(:epics).and_return(true)
end
context 'with no user' do
let(:current_user) { nil }
......@@ -462,5 +447,4 @@ describe GroupPolicy do
it { expect_disallowed(:change_share_with_group_lock) }
end
end
end
end
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