Commit 5904fea9 authored by Robert Speicher's avatar Robert Speicher

Add `:nested_groups` metadata to `Groups::NestedCreateService` specs

parent 4428944d
...@@ -14,14 +14,14 @@ describe Groups::NestedCreateService do ...@@ -14,14 +14,14 @@ describe Groups::NestedCreateService do
expect(service.execute).to eq(child) expect(service.execute).to eq(child)
end 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 = create(:group, path: 'a-group')
parent.add_owner(user) parent.add_owner(user)
expect(service.execute.parent).to eq(parent) expect(service.execute.parent).to eq(parent)
end end
it 'creates group and subgroup in the database' do it 'creates group and subgroup in the database', :nested_groups do
service.execute service.execute
parent = Group.find_by_full_path('a-group') 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