debian-mirror-gitlab/spec/graphql/types/issue_sort_enum_spec.rb

16 lines
423 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['IssueSort'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('IssueSort') }
2019-12-26 22:10:19 +05:30
it_behaves_like 'common sort values'
it 'exposes all the existing issue sort values' do
2020-05-24 23:13:21 +05:30
expect(described_class.values.keys).to include(
2021-01-03 14:25:43 +05:30
*%w[DUE_DATE_ASC DUE_DATE_DESC RELATIVE_POSITION_ASC SEVERITY_ASC SEVERITY_DESC]
2020-05-24 23:13:21 +05:30
)
2019-12-26 22:10:19 +05:30
end
end