summaryrefslogtreecommitdiff
path: root/spec/graphql/types/issuable_sort_enum_spec.rb
blob: 35c42d8194c37fa71b2e472a5c79ee277a60aaaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Types::IssuableSortEnum do
  specify { expect(described_class.graphql_name).to eq('IssuableSort') }

  it 'exposes all the existing issuable sort values' do
    expect(described_class.values.keys).to include(
      *%w[PRIORITY_ASC PRIORITY_DESC
          LABEL_PRIORITY_ASC LABEL_PRIORITY_DESC
          MILESTONE_DUE_ASC MILESTONE_DUE_DESC]
    )
  end
end