net-sftp fails with mocha >= 0.11.3
Reported by Lucas Nussbaum | September 2nd, 2012 @ 04:03 PM
Hi,
When running the net-sftp test suite with mocha >= 0.11.3, the test suite fails with:
1) Failure: test_from_buffer_should_correctly_parse_buffer_and_return_attribute_object(Protocol::V04::TestAttributes)
[./protocol/04/test_attributes.rb:15:in `test_from_buffer_should_correctly_parse_buffer_and_return_attribute_object' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
2) Failure: test_from_buffer_should_correctly_parse_buffer_with_attribute_subset_and_return_attribute_object(Protocol::V04::TestAttributes)
[./protocol/04/test_attributes.rb:47:in `test_from_buffer_should_correctly_parse_buffer_with_attribute_subset_and_return_attribute_object' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
3) Failure: test_parse_name_packet_should_use_correct_name_class(Protocol::V04::TestBase)
[./protocol/04/test_base.rb:25:in `test_parse_name_packet_should_use_correct_name_class' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
4) Failure: test_parse_name_packet_should_use_correct_name_class(Protocol::V05::TestBase)
[./protocol/04/test_base.rb:25:in `test_parse_name_packet_should_use_correct_name_class' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
5) Failure: test_from_buffer_should_correctly_parse_buffer_and_return_attribute_object(Protocol::V06::TestAttributes)
[./protocol/06/test_attributes.rb:9:in `test_from_buffer_should_correctly_parse_buffer_and_return_attribute_object' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
6) Failure: test_from_buffer_should_correctly_parse_buffer_with_attribute_subset_and_return_attribute_object(Protocol::V06::TestAttributes)
[./protocol/06/test_attributes.rb:51:in `test_from_buffer_should_correctly_parse_buffer_with_attribute_subset_and_return_attribute_object' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
7) Failure: test_parse_name_packet_should_use_correct_name_class(Protocol::V06::TestBase)
[./protocol/04/test_base.rb:25:in `test_parse_name_packet_should_use_correct_name_class' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `__send__' /usr/lib/ruby/vendor_ruby/mocha/integration/test_unit/ruby_version_186_and_above.rb:22:in `run']:expected but was .
It works fine with mocha 0.10.5.
The problem occurs both with Ruby 1.8 and 1.9.3.
This is tracked in Debian as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674324
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Please do not create new issues here. Use github issues instead:
https://github.com/net-ssh/net-ssh/issues