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:
authorBob Van Landuyt <bob@vanlanduyt.co>2019-06-18 19:31:06 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2019-06-21 14:00:50 +0300
commit703d0246ff6647802c0e2ddb064d0360b8fcfb94 (patch)
treec7fe413d25254de3214ca7fc7ad29cfeffde014e /spec/graphql/types/namespace_type_spec.rb
parentac2d08212b20bae20c85ea225ec3fb0052a9e1af (diff)
Add authorize to LabelType and NamespaceType
This also disables the cop with a reasoning in types where appropriate
Diffstat (limited to 'spec/graphql/types/namespace_type_spec.rb')
-rw-r--r--spec/graphql/types/namespace_type_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/graphql/types/namespace_type_spec.rb b/spec/graphql/types/namespace_type_spec.rb
index 77fd590586e..e1153832cc9 100644
--- a/spec/graphql/types/namespace_type_spec.rb
+++ b/spec/graphql/types/namespace_type_spec.rb
@@ -13,4 +13,6 @@ describe GitlabSchema.types['Namespace'] do
is_expected.to have_graphql_fields(*expected_fields)
end
+
+ it { is_expected.to require_graphql_authorizations(:read_namespace) }
end