capistrano/capistrano — pull request #197 by kenmazaika (2012-04-19 23:32:04+00:00)
Title: Specify mocha version.  

This is a pretty crazy bug.

14 hours ago mocha released version 0.11 (before it was 10.5).

In this version mocked objects with function named `process` that are passed blocks, will not get the block passed. Instead it will seem as if it was nil. If the function is named anything besides `process` the block goes through fine. This only happens in ruby 1.8.7 (1.9.3 works fine).

Since the gemspec didn't specify the version, it was pulling in the latest version.

Since 0.11.0 of mocha seems to have bugs, I locked the version of mocha to the last stable version 10.5 in the gemspec.