debian-mirror-gitlab/spec/graphql/types/customer_relations/organization_type_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
454 B
Ruby
Raw Normal View History

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