debian-mirror-gitlab/spec/graphql/types/notes/diff_position_type_spec.rb

13 lines
384 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['DiffPosition'] do
it 'exposes the expected fields' do
2019-09-30 21:07:59 +05:30
expected_fields = [:diff_refs, :file_path, :old_path,
2019-09-04 21:01:54 +05:30
:new_path, :position_type, :old_line, :new_line, :x, :y,
:width, :height]
2019-12-21 20:55:43 +05:30
is_expected.to have_graphql_fields(*expected_fields)
2019-09-04 21:01:54 +05:30
end
end