rails/rails — pull request #5963 by kennyj (2012-04-24 16:37:14+00:00)
Title: Fix build. It seems that the Mocha's behavior were changed.

I think that the Mocha's behavior were changed.
* Mocha::StubbingError: stubbing method on nil
* Mocha::StubbingError: can't stub method on frozen object

BTW: we can change a behavior of stubbing method on nil
by Mocha::Configuration.allow(:stubbing_method_on_nil)