blob: f63a0a7010f85e53742d36099158927f79d9a9cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GitlabSchema.types['PackageSettings'] do
specify { expect(described_class.graphql_name).to eq('PackageSettings') }
specify { expect(described_class.description).to eq('Namespace-level Package Registry settings') }
specify { expect(described_class).to require_graphql_authorizations(:admin_package) }
describe 'maven_duplicate_exception_regex field' do
subject { described_class.fields['mavenDuplicateExceptionRegex'] }
it { is_expected.to have_graphql_type(Types::UntrustedRegexp) }
end
end
|