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

package info (click to toggle)
ruby-net-ssh 1%3A2.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,252 kB
  • sloc: ruby: 12,000; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 457 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Skip test that is broken on Ruby 1.8
Author: Antonio Terceiro <terceiro@debian.org>

---

--- ruby-net-ssh-2.5.2.orig/test/test_known_hosts.rb
+++ ruby-net-ssh-2.5.2/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