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

issuable_searchable_field_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: 13e1b55ac7bc75a0af6b6a31a5e48eee548bc3cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::IssuableSearchableFieldEnum do
  specify { expect(described_class.graphql_name).to eq('IssuableSearchableField') }

  it 'exposes all the issuable searchable fields' do
    expect(described_class.values.keys).to contain_exactly(
      *Issuable::SEARCHABLE_FIELDS.map(&:upcase)
    )
  end
end