summaryrefslogtreecommitdiff
path: root/spec/graphql/types/notes/noteable_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/notes/noteable_type_spec.rb')
-rw-r--r--spec/graphql/types/notes/noteable_type_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/graphql/types/notes/noteable_type_spec.rb b/spec/graphql/types/notes/noteable_type_spec.rb
deleted file mode 100644
index fad24c6fed4..00000000000
--- a/spec/graphql/types/notes/noteable_type_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Types::Notes::NoteableType do
- it 'exposes the expected fields' do
- expected_fields = %i[
- discussions
- notes
- ]
-
- expect(described_class).to have_graphql_fields(*expected_fields)
- end
-
- describe ".resolve_type" do
- it 'knows the correct type for objects' do
- expect(described_class.resolve_type(build(:issue), {})).to eq(Types::IssueType)
- expect(described_class.resolve_type(build(:merge_request), {})).to eq(Types::MergeRequestType)
- expect(described_class.resolve_type(build(:design), {})).to eq(Types::DesignManagement::DesignType)
- expect(described_class.resolve_type(build(:alert_management_alert), {})).to eq(Types::AlertManagement::AlertType)
- end
- end
-end