File: disable_test_triggering_mocha_bug_690562.patch

package info (click to toggle)
ruby-net-sftp 1%3A2.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 528 kB
  • ctags: 860
  • sloc: ruby: 5,015; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 1,266 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: disable test causing FTBS because of a regression in ruby-mocha
 After the expects call, :from_buffer method is not completely restored and
 does not return objects from the correct class when applied to children
 classes.
Author: Cédric Boutillier <boutil@debian.org>
Bug: http://net-ssh.lighthouseapp.com/projects/36253-net-ssh/tickets/62-net-sftp-fails-with-mocha-0113
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674324
Last-Update: 2012-10-15

--- a/test/protocol/01/test_base.rb
+++ b/test/protocol/01/test_base.rb
@@ -33,10 +33,10 @@
     assert_equal({ :data => "here is a string" }, @base.parse_data_packet(packet))
   end
 
-  def test_parse_attrs_packet_should_use_correct_attributes_class
-    Net::SFTP::Protocol::V01::Attributes.expects(:from_buffer).with(:packet).returns(:result)
-    assert_equal({ :attrs => :result }, @base.parse_attrs_packet(:packet))
-  end
+#  def test_parse_attrs_packet_should_use_correct_attributes_class
+#    Net::SFTP::Protocol::V01::Attributes.expects(:from_buffer).with(:packet).returns(:result)
+#    assert_equal({ :attrs => :result }, @base.parse_attrs_packet(:packet))
+#  end
 
   def test_parse_name_packet_should_use_correct_name_class
     packet = Net::SSH::Buffer.from(:long, 2,