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

- old
+ new

@@ -5,20 +5,20 @@ Pupa::Organization.new(name: 'ABC, Inc.', classification: 'Corporation', parent_id: 'holding-company-corp') end describe '#to_s' do it 'should return a human-readable string' do - object.to_s.should == 'ABC, Inc.' + expect(object.to_s).to eq('ABC, Inc.') end end describe '#fingerprint' do it 'should return the fingerprint' do - object.fingerprint.should == { + expect(object.fingerprint).to eq({ '$or' => [ {'name' => 'ABC, Inc.', classification: 'Corporation', parent_id: 'holding-company-corp'}, {'other_names.name' => 'ABC, Inc.', classification: 'Corporation', parent_id: 'holding-company-corp'}, ], - } + }) end end end