File: skip-test-broken-on-1.8.patch

package info (click to toggle)
ruby-net-ssh 1%3A2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,484 kB
  • ctags: 1,862
  • sloc: ruby: 12,621; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
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
27
28
Description: Skip test that is broken on Ruby 1.8
Author: Antonio Terceiro <terceiro@debian.org>

---

--- a/test/test_known_hosts.rb
+++ b/test/test_known_hosts.rb
@@ -8,6 +8,6 @@ class TestKnownHosts < Test::Unit::TestC
     keys = kh.keys_for("github.com")
     assert_equal(1, keys.count)
     assert_equal("ssh-rsa", keys[0].ssh_type)
-  end
+  end if RUBY_VERSION > '1.9'
 
-end
\ No newline at end of file
+end
--- a/test/test_buffer.rb
+++ b/test/test_buffer.rb
@@ -32,7 +32,7 @@ class TestBuffer < Test::Unit::TestCase
   def test_from_should_measure_bytesize_of_utf_8_string_correctly
     buffer = Net::SSH::Buffer.from(:string, "\u2603") # Snowman is 3 bytes
     assert_equal "\0\0\0\3\u2603", buffer.to_s
-  end
+  end if RUBY_VERSION > '1.9'
 
   def test_read_without_argument_should_read_to_end
     buffer = new("hello world")