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

This commit is contained in:
Robert Speicher 2017-08-24 13:05:16 -04:00
parent 4428944d53
commit 5904fea900
1 changed files with 2 additions and 2 deletions

View File

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