diff options
Diffstat (limited to 'spec/graphql/types/packages/package_type_spec.rb')
-rw-r--r-- | spec/graphql/types/packages/package_type_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/graphql/types/packages/package_type_spec.rb b/spec/graphql/types/packages/package_type_spec.rb index df8135ed87e..dc1cc6a8bad 100644 --- a/spec/graphql/types/packages/package_type_spec.rb +++ b/spec/graphql/types/packages/package_type_spec.rb @@ -2,10 +2,10 @@ require 'spec_helper' -RSpec.describe GitlabSchema.types['Package'] do +RSpec.describe GitlabSchema.types['Package'], feature_category: :package_registry do specify { expect(described_class.description).to eq('Represents a package with pipelines in the Package Registry') } - specify { expect(described_class).to require_graphql_authorizations(:read_package) } + specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Package) } it 'includes all the package fields and pipelines' do expected_fields = %w[ @@ -14,6 +14,7 @@ RSpec.describe GitlabSchema.types['Package'] do project tags pipelines metadata status can_destroy + user_permissions ] expect(described_class).to include_graphql_fields(*expected_fields) |