diff options
Diffstat (limited to 'spec/graphql/types/notes/note_type_spec.rb')
-rw-r--r-- | spec/graphql/types/notes/note_type_spec.rb | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/spec/graphql/types/notes/note_type_spec.rb b/spec/graphql/types/notes/note_type_spec.rb index 019f742ee77..d6cd0800234 100644 --- a/spec/graphql/types/notes/note_type_spec.rb +++ b/spec/graphql/types/notes/note_type_spec.rb @@ -1,11 +1,27 @@ # frozen_string_literal: true + require 'spec_helper' describe GitlabSchema.types['Note'] do it 'exposes the expected fields' do - expected_fields = [:id, :project, :author, :body, :created_at, - :updated_at, :discussion, :resolvable, :position, :user_permissions, - :resolved_by, :resolved_at, :system, :body_html, :confidential] + expected_fields = %i[ + author + body + body_html + confidential + created_at + discussion + id + position + project + resolvable + resolved + resolved_at + resolved_by + system + updated_at + user_permissions + ] expect(described_class).to have_graphql_fields(*expected_fields) end |