Fix mocha errors on Rails >= 3.2.13

Rails >= 3.2.13 does not play well together with older mocha versions.