summaryrefslogtreecommitdiff
path: root/spec/graphql/types/notes/discussion_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/notes/discussion_type_spec.rb')
-rw-r--r--spec/graphql/types/notes/discussion_type_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/graphql/types/notes/discussion_type_spec.rb b/spec/graphql/types/notes/discussion_type_spec.rb
new file mode 100644
index 00000000000..2a1eb0efd35
--- /dev/null
+++ b/spec/graphql/types/notes/discussion_type_spec.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+require 'spec_helper'
+
+describe GitlabSchema.types['Discussion'] do
+ it { is_expected.to have_graphql_fields(:id, :created_at, :notes) }
+
+ it { is_expected.to require_graphql_authorizations(:read_note) }
+end