2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['SnippetBlob'] do
|
|
|
|
it 'has the correct fields' do
|
|
|
|
expected_fields = [:rich_data, :plain_data,
|
|
|
|
:raw_path, :size, :binary, :name, :path,
|
|
|
|
:simple_viewer, :rich_viewer, :mode]
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
end
|