spec/models/membership_spec.rb in pupa-0.1.11 vs spec/models/membership_spec.rb in pupa-0.2.0
- old
+ new
@@ -11,20 +11,20 @@
})
end
describe '#to_s' do
it 'should return a human-readable string' do
- object.to_s.should == 'john-q-public in abc-inc'
+ expect(object.to_s).to eq('john-q-public in abc-inc')
end
end
describe '#fingerprint' do
it 'should return the fingerprint' do
- object.fingerprint.should == {
+ expect(object.fingerprint).to eq({
'$or' => [
{label: "Kitchen assistant at Joe's Diner", person_id: 'john-q-public', organization_id: 'abc-inc', end_date: '1971-12-31'},
{person_id: 'john-q-public', organization_id: 'abc-inc', post_id: 'abc-inc-kitchen-assistant', end_date: '1971-12-31'},
],
- }
+ })
end
end
end