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

blob_type_spec.rb « snippets « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da36ab80f44ae94da61ad81dc58f08502ed66f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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]

    expect(described_class).to have_graphql_fields(*expected_fields)
  end
end