Specify nested_groups specs
This commit is contained in:
parent
6c57734677
commit
c2c6c4c69e
5 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ feature 'Group share lock' do
|
||||||
sign_in(root_owner)
|
sign_in(root_owner)
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with a subgroup' do
|
context 'with a subgroup', :nested_groups do
|
||||||
given!(:subgroup) { create(:group, parent: root_group) }
|
given!(:subgroup) { create(:group, parent: root_group) }
|
||||||
|
|
||||||
context 'when enabling the parent group share lock' do
|
context 'when enabling the parent group share lock' do
|
||||||
|
|
|
@ -58,7 +58,7 @@ feature 'Project > Members > Share with Group', :js do
|
||||||
end
|
end
|
||||||
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!(:group_to_share_with) { create(:group) }
|
||||||
let(:root_group) { create(:group) }
|
let(:root_group) { create(:group) }
|
||||||
let(:subgroup) { create(:group, parent: root_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]) }
|
it { expect(group.all_projects.to_a).to eq([project2, project1]) }
|
||||||
end
|
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
|
context 'when creating a subgroup' do
|
||||||
let(:subgroup) { create(:group, parent: root_group )}
|
let(:subgroup) { create(:group, parent: root_group )}
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ describe GroupPolicy do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'change_share_with_group_lock' do
|
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) }
|
let(:group) { create(:group, parent: parent) }
|
||||||
|
|
||||||
context 'when the parent share_with_group_lock is enabled' do
|
context 'when the parent share_with_group_lock is enabled' do
|
||||||
|
|
|
@ -101,7 +101,7 @@ describe Groups::UpdateService do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'for a subgroup' do
|
context 'for a subgroup', :nested_groups do
|
||||||
let(:subgroup) { create(:group, :private, parent: private_group) }
|
let(:subgroup) { create(:group, :private, parent: private_group) }
|
||||||
|
|
||||||
context 'when the parent group share_with_group_lock is enabled' do
|
context 'when the parent group share_with_group_lock is enabled' do
|
||||||
|
|
Loading…
Reference in a new issue