debian-mirror-gitlab/spec/graphql/types/issue_sort_enum_spec.rb
2019-12-26 22:10:19 +05:30

14 lines
373 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['IssueSort'] do
it { expect(described_class.graphql_name).to eq('IssueSort') }
it_behaves_like 'common sort values'
it 'exposes all the existing issue sort values' do
expect(described_class.values.keys).to include(*%w[DUE_DATE_ASC DUE_DATE_DESC RELATIVE_POSITION_ASC])
end
end