diff options
Diffstat (limited to 'spec/graphql/types/ci/catalog/resource_type_spec.rb')
-rw-r--r-- | spec/graphql/types/ci/catalog/resource_type_spec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/catalog/resource_type_spec.rb b/spec/graphql/types/ci/catalog/resource_type_spec.rb new file mode 100644 index 00000000000..5f5732c5237 --- /dev/null +++ b/spec/graphql/types/ci/catalog/resource_type_spec.rb @@ -0,0 +1,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 |