Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/customer_relations/organization_sort_enum_spec.rb')
-rw-r--r--spec/graphql/types/customer_relations/organization_sort_enum_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/graphql/types/customer_relations/organization_sort_enum_spec.rb b/spec/graphql/types/customer_relations/organization_sort_enum_spec.rb
new file mode 100644
index 00000000000..7ff498f0097
--- /dev/null
+++ b/spec/graphql/types/customer_relations/organization_sort_enum_spec.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GitlabSchema.types['OrganizationSort'] do
+ specify { expect(described_class.graphql_name).to eq('OrganizationSort') }
+
+ it_behaves_like 'common sort values'
+
+ it 'exposes all the contact sort values' do
+ expect(described_class.values.keys).to include(
+ *%w[
+ NAME_ASC
+ NAME_DESC
+ DESCRIPTION_ASC
+ DESCRIPTION_DESC
+ DEFAULT_RATE_ASC
+ DEFAULT_RATE_DESC
+ ]
+ )
+ end
+end