summaryrefslogtreecommitdiff
path: root/spec/serializers/evidences/author_entity_spec.rb
blob: 1d0fa95217cc5fc07a108866a29787e498a70d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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