Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_entity_spec.rb « evidences « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 915df9868878a88f7d5100fa027a649468082d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe Evidences::IssueEntity do
  let(:entity) { described_class.new(build(:issue)) }

  subject { entity.as_json }

  it 'exposes the expected fields' do
    expect(subject.keys).to contain_exactly(:id, :title, :description, :state, :iid, :confidential, :created_at, :due_date)
  end
end