Style rules; Revert some examples

This commit is contained in:
Fabio Papa 2019-06-28 13:31:47 -07:00
parent 02b1235046
commit 97b1f48e97
3 changed files with 6 additions and 4 deletions

View File

@ -70,6 +70,8 @@ describe Admin::GroupsController do
end
it 'updates the subgroup_creation_level successfully' do
MAINTAINER = ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS
expect do
post :update,
params: { id: group.to_param,

View File

@ -803,10 +803,10 @@ describe API::Groups do
group2.add_maintainer(user1)
end
it 'can create subgroups' do
it 'cannot create subgroups' do
post api("/groups", user1), params: { parent_id: group2.id, name: 'foo', path: 'foo' }
expect(response).to have_gitlab_http_status(201)
expect(response).to have_gitlab_http_status(403)
end
end
end

View File

@ -89,9 +89,9 @@ describe Groups::CreateService, '#execute' do
it { is_expected.to be_persisted }
end
context 'as maintainer' do
context 'as Owner' do
before do
group.add_maintainer(user)
group.add_owner(user)
end
it { is_expected.to be_persisted }