Add :nested_groups
metadata to Groups::NestedCreateService
specs
This commit is contained in:
parent
4428944d53
commit
5904fea900
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue