gitlab-org--gitlab-foss/spec/serializers/evidences/author_entity_spec.rb

13 lines
288 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe Evidences::AuthorEntity do
let(:entity) { described_class.new(build(:author)) }
subject { entity.as_json }
it 'exposes the expected fields' do
expect(subject.keys).to contain_exactly(:id, :name, :email)
end
end