debian-mirror-gitlab/spec/graphql/types/upload_type_spec.rb
2022-08-27 11:52:29 +05:30

14 lines
343 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GitlabSchema.types['FileUpload'] do
it { expect(described_class).to require_graphql_authorizations(:read_upload) }
it 'has the expected fields' do
expected_fields = %w[id size path]
expect(described_class).to include_graphql_fields(*expected_fields)
end
end