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

version_type_spec.rb « resources « catalog « ci « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 088973cf8f7d9911a4f8ed877821a3c681a7e377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::Ci::Catalog::Resources::VersionType, feature_category: :pipeline_composition do
  specify { expect(described_class.graphql_name).to eq('CiCatalogResourceVersion') }

  it 'exposes the expected fields' do
    expected_fields = %i[
      id
      created_at
      released_at
      tag_name
      tag_path
      author
      commit
      components
    ]

    expect(described_class).to have_graphql_fields(*expected_fields)
  end
end