diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 13:31:47 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 11:55:47 -0700 |
commit | 13d9c5dda20095e8f5aaaa173ec2fcc4213ba7bb (patch) | |
tree | 631dfbcd99a8b85322043b740fd9b5dde2b5b55c /spec/controllers/admin | |
parent | ec802d6434230cdbdb487ef6febe6205886035f9 (diff) | |
download | gitlab-ce-13d9c5dda20095e8f5aaaa173ec2fcc4213ba7bb.tar.gz |
Style rules; Revert some examples
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/groups_controller_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/controllers/admin/groups_controller_spec.rb b/spec/controllers/admin/groups_controller_spec.rb index df11321537f..72f389513f8 100644 --- a/spec/controllers/admin/groups_controller_spec.rb +++ b/spec/controllers/admin/groups_controller_spec.rb @@ -70,9 +70,14 @@ 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, group: { subgroup_creation_level: ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS } } - end.to change { group.reload.subgroup_creation_level }.to(::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS) + post :update, + params: { id: group.to_param, + group: { subgroup_creation_level: MAINTAINER } } + end.to change { group.reload.subgroup_creation_level } + .to(MAINTAINER) end end end |