Sha256: dbc042a6bfd09b11cef0a19b850b43dcedb076419bea3e0b6725fd528f498fd9
Contents?: true
Size: 602 Bytes
Versions: 5
Compression:
Stored size: 602 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Pupa::Person do let :object do Pupa::Person.new(name: 'Mr. John Q. Public, Esq.') end describe '#to_s' do it 'should return a human-readable string' do expect(object.to_s).to eq('Mr. John Q. Public, Esq.') end end describe '#fingerprint' do it 'should return the fingerprint' do expect(object.fingerprint).to eq({ '$or' => [ {'name' => 'Mr. John Q. Public, Esq.'}, {'other_names.name' => 'Mr. John Q. Public, Esq.'}, ], }) end end end
Version data entries
5 entries across 5 versions & 1 rubygems