diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-18 18:31:06 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-21 13:00:50 +0200 |
commit | 703d0246ff6647802c0e2ddb064d0360b8fcfb94 (patch) | |
tree | c7fe413d25254de3214ca7fc7ad29cfeffde014e /spec/graphql/types/metadata_type_spec.rb | |
parent | ac2d08212b20bae20c85ea225ec3fb0052a9e1af (diff) | |
download | gitlab-ce-703d0246ff6647802c0e2ddb064d0360b8fcfb94.tar.gz |
Add authorize to LabelType and NamespaceType
This also disables the cop with a reasoning in types where appropriate
Diffstat (limited to 'spec/graphql/types/metadata_type_spec.rb')
-rw-r--r-- | spec/graphql/types/metadata_type_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/graphql/types/metadata_type_spec.rb b/spec/graphql/types/metadata_type_spec.rb index 55205bf5b6a..5236380e477 100644 --- a/spec/graphql/types/metadata_type_spec.rb +++ b/spec/graphql/types/metadata_type_spec.rb @@ -2,4 +2,5 @@ require 'spec_helper' describe GitlabSchema.types['Metadata'] do it { expect(described_class.graphql_name).to eq('Metadata') } + it { is_expected.to require_graphql_authorizations(:read_instance_metadata) } end |