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

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

require 'spec_helper'

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

  it 'exposes the expected fields' do
    expected_fields = %i[
      id
      name
      description
      icon
      web_path
      versions
      latest_version
      latest_released_at
      star_count
      readme_html
      open_issues_count
      open_merge_requests_count
    ]

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