summaryrefslogtreecommitdiff
path: root/spec/graphql/types/notes/discussion_type_spec.rb
diff options
context:
space:
mode:
authoryguo <yguo@gitlab.com>2019-06-17 11:31:55 -0400
committeryguo <yguo@gitlab.com>2019-06-17 11:31:55 -0400
commit03d40ec845d83c9ecef6739c710137ff4183573b (patch)
treed6ed89848e227fad612c213acd9c766440599e0d /spec/graphql/types/notes/discussion_type_spec.rb
parent74db1abb6ce6b70d775e7b3d54f59ea431de9082 (diff)
parent08ed6b1720ff4d6e2b45a97000a106071d650194 (diff)
downloadgitlab-ce-issue-62685.tar.gz
Merge from masterissue-62685
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