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

15 lines
547 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['RootStorageStatistics'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('RootStorageStatistics') }
2019-12-04 20:38:33 +05:30
it 'has all the required fields' do
2020-04-22 19:07:51 +05:30
expect(described_class).to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size,
2020-07-28 23:09:34 +05:30
:build_artifacts_size, :packages_size, :wiki_size, :snippets_size)
2019-12-04 20:38:33 +05:30
end
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to require_graphql_authorizations(:read_statistics) }
2019-12-04 20:38:33 +05:30
end