diff options
Diffstat (limited to 'spec/graphql/types/ci/variable_sort_enum_spec.rb')
-rw-r--r-- | spec/graphql/types/ci/variable_sort_enum_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/variable_sort_enum_spec.rb b/spec/graphql/types/ci/variable_sort_enum_spec.rb new file mode 100644 index 00000000000..1702360a21f --- /dev/null +++ b/spec/graphql/types/ci/variable_sort_enum_spec.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Types::Ci::VariableSortEnum, feature_category: :pipeline_authoring do + it 'exposes the available order methods' do + expect(described_class.values).to match( + 'KEY_ASC' => have_attributes(value: :key_asc), + 'KEY_DESC' => have_attributes(value: :key_desc) + ) + end +end |