2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Types::ProjectMemberType do
|
2020-06-23 00:09:42 +05:30
|
|
|
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) }
|
|
|
|
|
|
|
|
specify { expect(described_class.graphql_name).to eq('ProjectMember') }
|
|
|
|
|
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_project) }
|
|
|
|
|
|
|
|
it 'has the expected fields' do
|
|
|
|
expected_fields = %w[
|
|
|
|
access_level created_by created_at updated_at expires_at project user
|
|
|
|
]
|
|
|
|
|
|
|
|
expect(described_class).to include_graphql_fields(*expected_fields)
|
|
|
|
end
|
|
|
|
end
|