diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-13 19:27:03 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-13 19:27:03 +0000 |
commit | 7f5f940041c8d1ee074be96cc64bdccdd95649b1 (patch) | |
tree | 334342b5d7c1898efcbe345c51838b63aa5106bc /spec/controllers | |
parent | b16db1458f5e0f6b0427cf3e2471302657297427 (diff) | |
download | gitlab-ce-7f5f940041c8d1ee074be96cc64bdccdd95649b1.tar.gz |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.4
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/groups_controller_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/controllers/admin/groups_controller_spec.rb b/spec/controllers/admin/groups_controller_spec.rb index 3f32209543f..38f4ce54e5c 100644 --- a/spec/controllers/admin/groups_controller_spec.rb +++ b/spec/controllers/admin/groups_controller_spec.rb @@ -25,6 +25,20 @@ RSpec.describe Admin::GroupsController do end end + describe 'POST #create' do + it 'creates group' do + expect do + post :create, params: { group: { path: 'test', name: 'test' } } + end.to change { Group.count }.by(1) + end + + it 'creates namespace_settings for group' do + expect do + post :create, params: { group: { path: 'test', name: 'test' } } + end.to change { NamespaceSetting.count }.by(1) + end + end + describe 'PUT #members_update' do let(:group_user) { create(:user) } |