mongoid/moped — pull request #83 by jonhyman (2012-10-02 22:30:51+00:00)
Title: Correcting findAndModify with upsert for Mongo >= 2.2.0

`find_and_modify` with upserts is broken in Mongoid for Mongo >= 2.2.0 due to the findAndModify change returning nil instead of {}. It seems like you made a typo, returning [] instead of {}. The spec for this just asserted that the result should be_empty, which [] responds to affirmatively.

This pull request updates both.