Welcome to mirror list, hosted at ThFree Co, Russian Federation.

version_sort_enum_spec.rb « resources « catalog « ci « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fd0f1a1e553f96b38bb0f9af735b6debb177f9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['CiCatalogResourceVersionSort'], feature_category: :pipeline_composition do
  it { expect(described_class.graphql_name).to eq('CiCatalogResourceVersionSort') }

  it 'exposes all the existing catalog resource version sort options' do
    expect(described_class.values.keys).to include(
      *%w[RELEASED_AT_ASC RELEASED_AT_DESC CREATED_ASC CREATED_DESC]
    )
  end
end