debian-mirror-gitlab/spec/graphql/types/namespace_type_spec.rb

19 lines
567 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['Namespace'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('Namespace') }
2019-07-31 22:56:46 +05:30
2019-09-30 21:07:59 +05:30
it 'has the expected fields' do
expected_fields = %w[
id name path full_name full_path description description_html visibility
2019-12-04 20:38:33 +05:30
lfs_enabled request_access_enabled projects root_storage_statistics
2019-09-30 21:07:59 +05:30
]
2020-07-28 23:09:34 +05:30
expect(described_class).to include_graphql_fields(*expected_fields)
2019-09-30 21:07:59 +05:30
end
2019-09-04 21:01:54 +05:30
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to require_graphql_authorizations(:read_namespace) }
2019-07-31 22:56:46 +05:30
end