Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/repository/blob_type_spec.rb')
-rw-r--r--spec/graphql/types/repository/blob_type_spec.rb29
1 files changed, 28 insertions, 1 deletions
diff --git a/spec/graphql/types/repository/blob_type_spec.rb b/spec/graphql/types/repository/blob_type_spec.rb
index f8647e4e964..beab4dcebc2 100644
--- a/spec/graphql/types/repository/blob_type_spec.rb
+++ b/spec/graphql/types/repository/blob_type_spec.rb
@@ -5,5 +5,32 @@ require 'spec_helper'
RSpec.describe Types::Repository::BlobType do
specify { expect(described_class.graphql_name).to eq('RepositoryBlob') }
- specify { expect(described_class).to have_graphql_fields(:id, :oid, :name, :path, :web_path, :lfs_oid, :mode) }
+ specify do
+ expect(described_class).to have_graphql_fields(
+ :id,
+ :oid,
+ :name,
+ :path,
+ :web_path,
+ :lfs_oid,
+ :mode,
+ :size,
+ :raw_size,
+ :raw_blob,
+ :raw_text_blob,
+ :file_type,
+ :edit_blob_path,
+ :stored_externally,
+ :raw_path,
+ :replace_path,
+ :simple_viewer,
+ :rich_viewer,
+ :plain_data,
+ :can_modify_blob,
+ :ide_edit_path,
+ :external_storage_url,
+ :fork_and_edit_path,
+ :ide_fork_and_edit_path
+ )
+ end
end