Specify nested_groups specs

This commit is contained in:
Michael Kozono 2017-09-01 18:22:55 -07:00
parent 6c57734677
commit c2c6c4c69e
5 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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) }

View file

@ -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 )}

View file

@ -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

View file

@ -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