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

organization_type_spec.rb « organizations « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6bc4bac6ba25ad9aa1f1dec00aff579e1803aef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['Organization'], feature_category: :cell do
  let(:expected_fields) { %w[avatar_url description description_html groups id name organization_users path web_url] }

  specify { expect(described_class.graphql_name).to eq('Organization') }
  specify { expect(described_class).to require_graphql_authorizations(:read_organization) }
  specify { expect(described_class).to have_graphql_fields(*expected_fields) }
end