2020-04-23 15:09:55 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe Types::IssuableSortEnum do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('IssuableSort') }
|
2020-04-23 15:09:55 +00:00
|
|
|
|
|
|
|
it 'exposes all the existing issuable sort values' do
|
2020-05-05 00:10:39 +00:00
|
|
|
expect(described_class.values.keys).to include(
|
|
|
|
*%w[PRIORITY_ASC PRIORITY_DESC
|
|
|
|
LABEL_PRIORITY_ASC LABEL_PRIORITY_DESC
|
|
|
|
MILESTONE_DUE_ASC MILESTONE_DUE_DESC]
|
|
|
|
)
|
2020-04-23 15:09:55 +00:00
|
|
|
end
|
|
|
|
end
|