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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/notes/diff_position_type_spec.rb')
-rw-r--r--spec/graphql/types/notes/diff_position_type_spec.rb17
1 files changed, 14 insertions, 3 deletions
diff --git a/spec/graphql/types/notes/diff_position_type_spec.rb b/spec/graphql/types/notes/diff_position_type_spec.rb
index 01f355cb278..87f3810d55c 100644
--- a/spec/graphql/types/notes/diff_position_type_spec.rb
+++ b/spec/graphql/types/notes/diff_position_type_spec.rb
@@ -1,11 +1,22 @@
# 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]
+ expected_fields = %i[
+ diff_refs
+ file_path
+ height
+ new_line
+ new_path
+ old_line
+ old_path
+ position_type
+ width
+ x
+ y
+ ]
expect(described_class).to have_graphql_fields(*expected_fields)
end