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")
|