Sha256: cda08d5357615ff2da88a23aa4feee537050a62a737e74666c0f9aa68736baaf

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

require_relative '../spec_helper'
require 'common_repository_model/persistence_base_serializer'

describe CommonRepositoryModel::PersistenceBaseSerializer do
  subject { CommonRepositoryModel::PersistenceBaseSerializer.new(base) }
  let(:base) { CommonRepositoryModel::PersistenceBase.new }
  let(:json) { JSON.parse(subject.to_json) }
  let(:root) { json.fetch('persistence_base') }
  it 'should be JSON with a PID' do
    root.fetch('pid')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
common_repository_model-0.1.0 spec/common_respository_model/persistence_base_serializer_spec.rb
common_repository_model-0.0.9 spec/common_respository_model/persistence_base_serializer_spec.rb
common_repository_model-0.0.8 spec/common_respository_model/persistence_base_serializer_spec.rb
common_repository_model-0.0.7 spec/common_respository_model/persistence_base_serializer_spec.rb