summaryrefslogtreecommitdiff
path: root/spec/graphql/types/notes/diff_position_type_spec.rb
blob: aa08daaacd4542eff1b210b32a81081237fe63a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true
require 'spec_helper'

describe GitlabSchema.types['DiffPosition'] do
  it 'exposes the expected fields' do
    expected_fields = [:diff_refs, :file_path, :old_path,
                       :new_path, :position_type, :old_line, :new_line, :x, :y,
                       :width, :height]

    is_expected.to have_graphql_fields(*expected_fields)
  end
end