diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-08-24 13:05:16 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-08-24 13:45:02 -0400 |
commit | 5904fea900c3ea6255b2c7aed7beb00ba91a6e28 (patch) | |
tree | e6bbaf0b7cfaa11008e53c30cda163115410984e /spec/services/groups | |
parent | 4428944d53232d7c9d620ae483e66fe46f414baf (diff) | |
download | gitlab-ce-5904fea900c3ea6255b2c7aed7beb00ba91a6e28.tar.gz |
Add `:nested_groups` metadata to `Groups::NestedCreateService` specs
Diffstat (limited to 'spec/services/groups')
-rw-r--r-- | spec/services/groups/nested_create_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/groups/nested_create_service_spec.rb b/spec/services/groups/nested_create_service_spec.rb index c1526456bac..6d11edb5842 100644 --- a/spec/services/groups/nested_create_service_spec.rb +++ b/spec/services/groups/nested_create_service_spec.rb @@ -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') |