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

19 lines
548 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['Namespace'] do
it { expect(described_class.graphql_name).to eq('Namespace') }
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-04-22 19:07:51 +05:30
expect(described_class).to have_graphql_fields(*expected_fields)
2019-09-30 21:07:59 +05:30
end
2019-09-04 21:01:54 +05:30
2020-04-22 19:07:51 +05:30
it { expect(described_class).to require_graphql_authorizations(:read_namespace) }
2019-07-31 22:56:46 +05:30
end