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

- old
+ new

@@ -5,15 +5,15 @@ Pupa::Post.new(label: 'Chef', organization_id: 'abc-inc', end_date: '2010') end describe '#to_s' do it 'should return a human-readable string' do - object.to_s.should == 'Chef in abc-inc' + expect(object.to_s).to eq('Chef in abc-inc') end end describe '#fingerprint' do it 'should return the fingerprint' do - object.fingerprint.should == {label: 'Chef', organization_id: 'abc-inc', end_date: '2010'} + expect(object.fingerprint).to eq({label: 'Chef', organization_id: 'abc-inc', end_date: '2010'}) end end end