Commit a3514ce7 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Enable nested group test only when nested groups are supported

parent eb24eea9
......@@ -57,11 +57,13 @@ describe Namespace, models: true do
end
end
context 'when license is applied to parent group' do
let(:child_group) { create :group, parent: group }
if Group.supports_nested_groups?
context 'when license is applied to parent group' do
let(:child_group) { create :group, parent: group }
it 'child group has feature available' do
expect(child_group.feature_available?(feature)).to eq(true)
it 'child group has feature available' do
expect(child_group.feature_available?(feature)).to eq(true)
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