ActionPack tests fail in edge with latest Mocha

1 view
Skip to first unread message

Rob Sanheim

unread,
Jan 24, 2007, 5:05:32 AM1/24/07
to rubyonra...@googlegroups.com
Hi

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

thanks,
- Rob

James Mead

unread,
Jan 24, 2007, 5:26:18 AM1/24/07
to rubyonra...@googlegroups.com, mocha-d...@rubyforge.org
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
Reply all
Reply to author
Forward
0 new messages