diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-09 03:19:48 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-11-09 03:19:48 +0300 |
commit | 03dba01273d548ab8c0dd82408400a834fb4e10f (patch) | |
tree | f5d5da30035fbfa84922d11b3328ed3866382914 /spec/serializers/issue_board_entity_spec.rb | |
parent | ab61bee378ed45ff01d74742b54149533811a204 (diff) |
Revert "Extract code into IssueBoardEntity"
This reverts commit 8c126525faba40032244328187ba73a53b6eaf4c.
Diffstat (limited to 'spec/serializers/issue_board_entity_spec.rb')
-rw-r--r-- | spec/serializers/issue_board_entity_spec.rb | 23 |
1 files changed, 0 insertions, 23 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 |