[DRE-maint] Bug#674324: ruby-net-sftp: FTBFS: test failed

Cédric Boutillier cedric.boutillier at gmail.com
Thu Sep 13 22:22:35 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120914/8ecbe600/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list