summaryrefslogtreecommitdiff
path: root/spec/serializers/evidences/project_entity_spec.rb
blob: 01c160425a80ddc7183506323989bf163db5e7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe Evidences::ProjectEntity do
  let(:entity) { described_class.new(build(:project)) }

  subject { entity.as_json }

  it 'exposes the expected fields' do
    expect(subject.keys).to contain_exactly(:id, :name, :description, :created_at)
  end
end