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

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

require 'spec_helper'

RSpec.describe GitlabSchema.types['CustomerRelationsOrganization'] do
  let(:fields) { %i[id name default_rate description active created_at updated_at] }

  it { expect(described_class.graphql_name).to eq('CustomerRelationsOrganization') }
  it { expect(described_class).to have_graphql_fields(fields) }
  it { expect(described_class).to require_graphql_authorizations(:read_crm_organization) }
end