Sha256: cd37464454ed97dad86cdbceaa59b4d48c95375ee6558a025651a8f1a98fcd2f
Contents?: true
Size: 592 Bytes
Versions: 25
Compression:
Stored size: 592 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 object.to_s.should == 'Mr. John Q. Public, Esq.' end end describe '#fingerprint' do it 'should return the fingerprint' do object.fingerprint.should == { '$or' => [ {'name' => 'Mr. John Q. Public, Esq.'}, {'other_names.name' => 'Mr. John Q. Public, Esq.'}, ], } end end end
Version data entries
25 entries across 25 versions & 1 rubygems