debian-mirror-gitlab/spec/serializers/evidences/project_entity_spec.rb
2019-12-21 20:55:43 +05:30

13 lines
309 B
Ruby

# 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