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

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

require 'spec_helper'

RSpec.describe Types::BaseArgument, feature_category: :api do
  include_examples 'Gitlab-style deprecations' do
    let_it_be(:field) do
      Types::BaseField.new(name: 'field', type: String, null: true)
    end

    def subject(args = {})
      base_args = { name: 'test', type: String, required: false, owner: field }
      described_class.new(**base_args.merge(args))
    end
  end
end