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