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

merge_request_sort_enum_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 472eba1a50d60a2f79a6eea156b0d1d6da130d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['MergeRequestSort'] do
  specify { expect(described_class.graphql_name).to eq('MergeRequestSort') }

  it_behaves_like 'common sort values'

  it 'exposes all the existing issue sort values' do
    expect(described_class.values.keys).to include(
      *%w[MERGED_AT_ASC MERGED_AT_DESC]
    )
  end
end