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

evidence_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: 531708e3be676b173210031ff379d1251af034b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

describe Evidences::EvidenceEntity do
  let(:evidence) { build(:evidence) }
  let(:entity) { described_class.new(evidence) }

  subject { entity.as_json }

  it 'exposes the expected fields' do
    expect(subject.keys).to contain_exactly(:release)
  end
end