summaryrefslogtreecommitdiff
path: root/spec/serializers
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-11-09 13:19:48 +1300
committerThong Kuah <tkuah@gitlab.com>2018-11-09 13:19:48 +1300
commit03dba01273d548ab8c0dd82408400a834fb4e10f (patch)
treef5d5da30035fbfa84922d11b3328ed3866382914 /spec/serializers
parentab61bee378ed45ff01d74742b54149533811a204 (diff)
downloadgitlab-ce-03dba01273d548ab8c0dd82408400a834fb4e10f.tar.gz
Revert "Extract code into IssueBoardEntity"revert_issue_board_entity
This reverts commit 8c126525faba40032244328187ba73a53b6eaf4c.
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/issue_board_entity_spec.rb23
-rw-r--r--spec/serializers/issue_serializer_spec.rb8
2 files changed, 0 insertions, 31 deletions
diff --git a/spec/serializers/issue_board_entity_spec.rb b/spec/serializers/issue_board_entity_spec.rb
deleted file mode 100644
index 06d9d3657e6..00000000000
--- a/spec/serializers/issue_board_entity_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe IssueBoardEntity do
- let(:project) { create(:project) }
- let(:resource) { create(:issue, project: project) }
- let(:user) { create(:user) }
-
- let(:request) { double('request', current_user: user) }
-
- subject { described_class.new(resource, request: request).as_json }
-
- it 'has basic attributes' do
- expect(subject).to include(:id, :iid, :title, :confidential, :due_date, :project_id, :relative_position,
- :project, :labels)
- end
-
- it 'has path and endpoints' do
- expect(subject).to include(:reference_path, :real_path, :issue_sidebar_endpoint,
- :toggle_subscription_endpoint, :assignable_labels_endpoint)
- end
-end
diff --git a/spec/serializers/issue_serializer_spec.rb b/spec/serializers/issue_serializer_spec.rb
index e8c46c0cdee..75578816e75 100644
--- a/spec/serializers/issue_serializer_spec.rb
+++ b/spec/serializers/issue_serializer_spec.rb
@@ -24,12 +24,4 @@ describe IssueSerializer do
expect(json_entity).to match_schema('entities/issue_sidebar')
end
end
-
- context 'board issue serialization' do
- let(:serializer) { 'board' }
-
- it 'matches board issue json schema' do
- expect(json_entity).to match_schema('entities/issue_board')
- end
- end
end