Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-01 23:41:32 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:49 +0300
commitd4c53e1799d4967c20ac771f6628416183985ef4 (patch)
tree0bc24f66e12422be4e76ba92bc18fa61a81499ee /spec/controllers/admin/groups_controller_spec.rb
parentb36d78eabc53bb6a457c45b67a65276c85bf2b8a (diff)
Apply changes recomended by merge request coach
Diffstat (limited to 'spec/controllers/admin/groups_controller_spec.rb')
-rw-r--r--spec/controllers/admin/groups_controller_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/controllers/admin/groups_controller_spec.rb b/spec/controllers/admin/groups_controller_spec.rb
index 398f587bafe..1123563c1e3 100644
--- a/spec/controllers/admin/groups_controller_spec.rb
+++ b/spec/controllers/admin/groups_controller_spec.rb
@@ -70,13 +70,11 @@ describe Admin::GroupsController do
end
it 'updates the subgroup_creation_level successfully' do
- OWNER = ::Gitlab::Access::OWNER_SUBGROUP_ACCESS
-
expect do
post :update,
params: { id: group.to_param,
- group: { subgroup_creation_level: OWNER } }
- end.to change { group.reload.subgroup_creation_level }.to(OWNER)
+ group: { subgroup_creation_level: ::Gitlab::Access::OWNER_SUBGROUP_ACCESS } }
+ end.to change { group.reload.subgroup_creation_level }.to(::Gitlab::Access::OWNER_SUBGROUP_ACCESS)
end
end
end