rspec/rspec-mocks — pull request #276 by JonRowe (2013-04-23 23:06:46+00:00)
Title: Fix Marshall.dump when used with expectations on nil

When nil has had expectations set on it (or even allowed on it) attempts to marshall it cause a `NoMethodError` from `object.dup`.
Instead we should use the nil singleton as is and remove mocks that way.

Fixes #274.