diff options
Diffstat (limited to 'spec/serializers/evidences/author_entity_spec.rb')
-rw-r--r-- | spec/serializers/evidences/author_entity_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/serializers/evidences/author_entity_spec.rb b/spec/serializers/evidences/author_entity_spec.rb new file mode 100644 index 00000000000..1d0fa95217c --- /dev/null +++ b/spec/serializers/evidences/author_entity_spec.rb @@ -0,0 +1,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 |