summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-24 21:26:50 +0000
committerStan Hu <stanhu@gmail.com>2017-08-24 21:26:50 +0000
commit26189a04a8b88a0b44d5bb631f553623df16412e (patch)
tree4570b8aaff69e780bf29083275f58bdbf4d8786c
parent3faea1f50d66c7fe8722d9b0072972648f9aaac2 (diff)
parent5904fea900c3ea6255b2c7aed7beb00ba91a6e28 (diff)
downloadgitlab-ce-26189a04a8b88a0b44d5bb631f553623df16412e.tar.gz
Merge branch 'rs-fix-master' into 'master'
Add `:nested_groups` metadata to `Groups::NestedCreateService` specs See merge request !13809
-rw-r--r--spec/services/groups/nested_create_service_spec.rb4
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')