spec/unit/designs/migrations_spec.rb in couchrest_model-2.0.4 vs spec/unit/designs/migrations_spec.rb in couchrest_model-2.1.0.beta1
- old
+ new
@@ -88,10 +88,10 @@
new_doc = @db.get(@doc_id)
new_doc.should_not be_nil
# should be possible to perform cleanup
@callback.call
- lambda { new_doc = @db.get(@doc_id) }.should raise_error RestClient::ResourceNotFound
+ expect(@db.get(@doc_id)).to be_nil
doc = @db.get(@doc['_id'])
doc['views'].should have_key('by_name_and_surname')
end