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