[mocha-developer] [Rails-core] ActionPack tests fail in edge with latest Mocha

James Mead jamesmead44 at gmail.com
Wed Jan 24 05:26:18 EST 2007


On 24/01/07, Rob Sanheim <rsanheim at gmail.com> wrote:
>
> ActionPack tests fail on edge if you are running the latest Mocha
> (0.4).  This is only when running the full suite via rake, not when
> running the specific test class (base_test.rb) in isolation.  I have
> no idea why the discrepancy.
>
> Here's a patch to fix it - its very minor and just due to an api
> change in mocha.
>
> http://dev.rubyonrails.org/ticket/7347
>

Sorry about the Mocha API change - I forgot Kevin had to hide Mocha-related
methods in that test. I just thought I'd let you know, it's high on our todo
list to reduce the footprint of Mocha i.e. the number of public methods that
get added to Object. We also hope to provide a way of "un-Mochifying" an
object. This would hopefully mean you wouldn't need the
hide_mocha_methods_from_controller method.

-- 
James.
http://blog.floehopper.org


More information about the mocha-developer mailing list