2020-01-22 12:08:40 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['SnippetBlob'] do
|
|
|
|
it 'has the correct fields' do
|
|
|
|
expected_fields = [:highlighted_data, :raw_path,
|
|
|
|
:size, :binary, :name, :path,
|
2020-02-03 18:08:46 +00:00
|
|
|
:simple_viewer, :rich_viewer,
|
|
|
|
:mode]
|
2020-01-22 12:08:40 +00:00
|
|
|
|
|
|
|
is_expected.to have_graphql_fields(*expected_fields)
|
|
|
|
end
|
|
|
|
end
|