BigW Consortium Gitlab

Commit c2c6c4c6 by Michael Kozono

Specify nested_groups specs

parent 6c577346
......@@ -9,7 +9,7 @@ feature 'Group share lock' do
sign_in(root_owner)
end
context 'with a subgroup' do
context 'with a subgroup', :nested_groups do
given!(:subgroup) { create(:group, parent: root_group) }
context 'when enabling the parent group share lock' do
......
......@@ -58,7 +58,7 @@ feature 'Project > Members > Share with Group', :js do
end
end
context 'for a project in a subgroup', :postgresql do
context 'for a project in a subgroup', :nested_groups do
let!(:group_to_share_with) { create(:group) }
let(:root_group) { create(:group) }
let(:subgroup) { create(:group, parent: root_group) }
......
......@@ -407,7 +407,7 @@ describe Namespace do
it { expect(group.all_projects.to_a).to eq([project2, project1]) }
end
describe '#share_with_group_lock with subgroups' do
describe '#share_with_group_lock with subgroups', :nested_groups do
context 'when creating a subgroup' do
let(:subgroup) { create(:group, parent: root_group )}
......
......@@ -244,7 +244,7 @@ describe GroupPolicy do
end
describe 'change_share_with_group_lock' do
context 'when the group has a parent' do
context 'when the group has a parent', :nested_groups do
let(:group) { create(:group, parent: parent) }
context 'when the parent share_with_group_lock is enabled' do
......
......@@ -101,7 +101,7 @@ describe Groups::UpdateService do
end
end
context 'for a subgroup' do
context 'for a subgroup', :nested_groups do
let(:subgroup) { create(:group, :private, parent: private_group) }
context 'when the parent group share_with_group_lock is enabled' do
......
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