summaryrefslogtreecommitdiff
path: root/spec/graphql/types
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 03:06:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 03:06:31 +0000
commitd41c040fa25a8b4092843b84bf7d839591b6ee09 (patch)
tree5f7e94d2b6ac79483788eb867b3827af10f5bd82 /spec/graphql/types
parent4689bac80c8ab86e2b37abf217cc9b3404c5255f (diff)
downloadgitlab-ce-d41c040fa25a8b4092843b84bf7d839591b6ee09.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql/types')
-rw-r--r--spec/graphql/types/issue_sort_enum_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/graphql/types/issue_sort_enum_spec.rb b/spec/graphql/types/issue_sort_enum_spec.rb
new file mode 100644
index 00000000000..da7126f3d84
--- /dev/null
+++ b/spec/graphql/types/issue_sort_enum_spec.rb
@@ -0,0 +1,13 @@
+# 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])
+ end
+end