diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-18 19:31:06 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-21 14:00:50 +0300 |
commit | 703d0246ff6647802c0e2ddb064d0360b8fcfb94 (patch) | |
tree | c7fe413d25254de3214ca7fc7ad29cfeffde014e /spec/graphql/types/namespace_type_spec.rb | |
parent | ac2d08212b20bae20c85ea225ec3fb0052a9e1af (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.rb | 2 |
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 |