spec/models/person_spec.rb in pupa-0.1.11 vs spec/models/person_spec.rb in pupa-0.2.0

- old
+ new

@@ -5,20 +5,20 @@ 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.' + expect(object.to_s).to eq('Mr. John Q. Public, Esq.') end end describe '#fingerprint' do it 'should return the fingerprint' do - object.fingerprint.should == { + expect(object.fingerprint).to eq({ '$or' => [ {'name' => 'Mr. John Q. Public, Esq.'}, {'other_names.name' => 'Mr. John Q. Public, Esq.'}, ], - } + }) end end end