blob: 5f5732c52371aa99a664939002ea6f39ef8c0017 (
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
27
28
|
# 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
forks_count
root_namespace
readme_html
open_issues_count
open_merge_requests_count
]
expect(described_class).to have_graphql_fields(*expected_fields)
end
end
|