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

board_issue_input_type_spec.rb « boards « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6319ff9a88e2d6a025d8fb72be1779783489ff72 (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['BoardIssueInput'] do
  it { expect(described_class.graphql_name).to eq('BoardIssueInput') }

  it 'exposes negated issue arguments' do
    allowed_args = %w(labelName milestoneTitle assigneeUsername authorUsername
                      releaseTag myReactionEmoji not search)

    expect(described_class.arguments.keys).to include(*allowed_args)
    expect(described_class.arguments['not'].type).to eq(Types::Boards::NegatedBoardIssueInputType)
  end
end