2019-10-01 11:06:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe Evidences::ProjectEntity do
|
2019-10-01 11:06:05 -04:00
|
|
|
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
|