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

24 lines
410 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
2020-06-23 00:09:42 +05:30
2019-09-04 21:01:54 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['DiffPosition'] do
2019-09-04 21:01:54 +05:30
it 'exposes the expected fields' do
2020-06-23 00:09:42 +05:30
expected_fields = %i[
diff_refs
file_path
height
new_line
new_path
old_line
old_path
position_type
width
x
y
]
2019-09-04 21:01:54 +05:30
2020-04-22 19:07:51 +05:30
expect(described_class).to have_graphql_fields(*expected_fields)
2019-09-04 21:01:54 +05:30
end
end