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

Version Path
pupa-0.1.11 spec/models/person_spec.rb
pupa-0.1.10 spec/models/person_spec.rb
pupa-0.1.9 spec/models/person_spec.rb
pupa-0.1.8 spec/models/person_spec.rb
pupa-0.1.7 spec/models/person_spec.rb
pupa-0.1.6 spec/models/person_spec.rb
pupa-0.1.5 spec/models/person_spec.rb
pupa-0.1.4 spec/models/person_spec.rb
pupa-0.1.3 spec/models/person_spec.rb
pupa-0.1.2 spec/models/person_spec.rb
pupa-0.1.1 spec/models/person_spec.rb
pupa-0.1.0 spec/models/person_spec.rb
pupa-0.0.13 spec/models/person_spec.rb
pupa-0.0.12 spec/models/person_spec.rb
pupa-0.0.11 spec/models/person_spec.rb
pupa-0.0.10 spec/models/person_spec.rb
pupa-0.0.9 spec/models/person_spec.rb
pupa-0.0.8 spec/models/person_spec.rb
pupa-0.0.7 spec/models/person_spec.rb
pupa-0.0.6 spec/models/person_spec.rb