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

release_assets_input_type_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c44abe1e171b6f6c7ab76a5e67f0ed1e72d0a2ae (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 Types::ReleaseAssetsInputType do
  specify { expect(described_class.graphql_name).to eq('ReleaseAssetsInput') }

  it 'has the correct arguments' do
    expect(described_class.arguments.keys).to match_array(%w[links])
  end

  it 'sets the type of links argument to ReleaseAssetLinkInputType' do
    expect(described_class.arguments['links'].type.of_type.of_type).to eq(Types::ReleaseAssetLinkInputType)
  end
end