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

organization_sort_enum_spec.rb « customer_relations « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ff498f00972d4fbe6ec222e81976ecece3fc78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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