diff options
Diffstat (limited to 'spec/graphql/types/ci/catalog/resource_sort_enum_spec.rb')
-rw-r--r-- | spec/graphql/types/ci/catalog/resource_sort_enum_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/catalog/resource_sort_enum_spec.rb b/spec/graphql/types/ci/catalog/resource_sort_enum_spec.rb new file mode 100644 index 00000000000..1de324b6652 --- /dev/null +++ b/spec/graphql/types/ci/catalog/resource_sort_enum_spec.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe GitlabSchema.types['CiCatalogResourceSort'], feature_category: :pipeline_composition do + it { expect(described_class.graphql_name).to eq('CiCatalogResourceSort') } + + it 'exposes all the existing catalog resource sort orders' do + expect(described_class.values.keys).to include( + *%w[NAME_ASC NAME_DESC LATEST_RELEASED_AT_ASC LATEST_RELEASED_AT_DESC CREATED_ASC CREATED_DESC] + ) + end +end |