BigW Consortium Gitlab

Commit 26189a04 by Stan Hu

Merge branch 'rs-fix-master' into 'master'

Add `:nested_groups` metadata to `Groups::NestedCreateService` specs See merge request !13809
parents 3faea1f5 5904fea9
......@@ -14,14 +14,14 @@ describe Groups::NestedCreateService do
expect(service.execute).to eq(child)
end
it 'reuses a parent if it already existed' do
it 'reuses a parent if it already existed', :nested_groups do
parent = create(:group, path: 'a-group')
parent.add_owner(user)
expect(service.execute.parent).to eq(parent)
end
it 'creates group and subgroup in the database' do
it 'creates group and subgroup in the database', :nested_groups do
service.execute
parent = Group.find_by_full_path('a-group')
......
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