On Sun, Sep 02, 2012 at 10:12:31PM +0200, Lucas Nussbaum wrote: > Indeed. It fails with ruby-mocha 0.11.3, but works with 0.10.3 and > 0.10.5.
> I'm not very familiar with ruby-mocha, so I don't know if the package is > actually doing something wrong. Could someone in debian-ruby@ take a > closer look? I've imported Git upstream repository of mocha to find the change responsible for that. It is caused by the following commit 995bf434634a22d52a49e4972f66c73dd7e40775 ClassMethod & InstanceMethod no longer use alias_method which is somewhere between version 10.5 and 11.0. This commit brings a modification of hide_original_method and restore_original_method used in the stub method. Reverting this change in Mocha makes the tests for net-sftp pass. I don't understand yet all the implications of the new definition of these two functions though, and what kind of changes should be applied to net-sftp's tests... Cédric
signature.asc
Description: Digital signature