2021-11-11 11:23:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe GitlabSchema.types['CustomerRelationsOrganization'] do
|
2022-07-16 23:28:13 +05:30
|
|
|
let(:fields) { %i[id name default_rate description active created_at updated_at] }
|
2021-11-11 11:23:49 +05:30
|
|
|
|
|
|
|
it { expect(described_class.graphql_name).to eq('CustomerRelationsOrganization') }
|
|
|
|
it { expect(described_class).to have_graphql_fields(fields) }
|
2021-12-11 22:18:48 +05:30
|
|
|
it { expect(described_class).to require_graphql_authorizations(:read_crm_organization) }
|
2021-11-11 11:23:49 +05:30
|
|
|
end
|