summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2013-03-08 14:35:28 +0100
committerVít Ondruch <vondruch@redhat.com>2013-03-08 14:35:28 +0100
commitf3f09edf94a3930e0ef9b87574f6dbcf2aa1255c (patch)
tree34b09e47b320f577dbed19f44a9aef1907c63b33
parent4f2ae72397484dbf365ef1b4898076fc9ffbd90a (diff)
downloadnet-ssh-f3f09edf94a3930e0ef9b87574f6dbcf2aa1255c.tar.gz
Fix encoding issues with Ruby 2.0 (#87).
-rw-r--r--test/test_buffer.rb2
-rw-r--r--test/transport/hmac/test_md5.rb2
-rw-r--r--test/transport/hmac/test_md5_96.rb2
-rw-r--r--test/transport/hmac/test_ripemd160.rb2
-rw-r--r--test/transport/hmac/test_sha1.rb2
-rw-r--r--test/transport/hmac/test_sha1_96.rb2
-rw-r--r--test/transport/hmac/test_sha2_256.rb2
-rw-r--r--test/transport/hmac/test_sha2_256_96.rb2
-rw-r--r--test/transport/hmac/test_sha2_512.rb2
-rw-r--r--test/transport/hmac/test_sha2_512_96.rb2
-rw-r--r--test/transport/test_cipher_factory.rb2
-rw-r--r--test/transport/test_packet_stream.rb2
-rw-r--r--test/transport/test_state.rb2
13 files changed, 26 insertions, 0 deletions
diff --git a/test/test_buffer.rb b/test/test_buffer.rb
index 840c528..74d40aa 100644
--- a/test/test_buffer.rb
+++ b/test/test_buffer.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/buffer'
diff --git a/test/transport/hmac/test_md5.rb b/test/transport/hmac/test_md5.rb
index d7854f2..7cae775 100644
--- a/test/transport/hmac/test_md5.rb
+++ b/test/transport/hmac/test_md5.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/hmac/md5'
diff --git a/test/transport/hmac/test_md5_96.rb b/test/transport/hmac/test_md5_96.rb
index 575447b..41c5e11 100644
--- a/test/transport/hmac/test_md5_96.rb
+++ b/test/transport/hmac/test_md5_96.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'transport/hmac/test_md5'
require 'net/ssh/transport/hmac/md5_96'
diff --git a/test/transport/hmac/test_ripemd160.rb b/test/transport/hmac/test_ripemd160.rb
index 5210c97..8255a73 100644
--- a/test/transport/hmac/test_ripemd160.rb
+++ b/test/transport/hmac/test_ripemd160.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/hmac/ripemd160'
diff --git a/test/transport/hmac/test_sha1.rb b/test/transport/hmac/test_sha1.rb
index 4be100a..1cc133a 100644
--- a/test/transport/hmac/test_sha1.rb
+++ b/test/transport/hmac/test_sha1.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/hmac/sha1'
diff --git a/test/transport/hmac/test_sha1_96.rb b/test/transport/hmac/test_sha1_96.rb
index 866e15a..725e7d1 100644
--- a/test/transport/hmac/test_sha1_96.rb
+++ b/test/transport/hmac/test_sha1_96.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'transport/hmac/test_sha1'
require 'net/ssh/transport/hmac/sha1_96'
diff --git a/test/transport/hmac/test_sha2_256.rb b/test/transport/hmac/test_sha2_256.rb
index a01fd24..aa6bd6e 100644
--- a/test/transport/hmac/test_sha2_256.rb
+++ b/test/transport/hmac/test_sha2_256.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/hmac/sha2_256'
diff --git a/test/transport/hmac/test_sha2_256_96.rb b/test/transport/hmac/test_sha2_256_96.rb
index 8257a43..34105ef 100644
--- a/test/transport/hmac/test_sha2_256_96.rb
+++ b/test/transport/hmac/test_sha2_256_96.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'transport/hmac/test_sha2_256'
require 'net/ssh/transport/hmac/sha2_256_96'
diff --git a/test/transport/hmac/test_sha2_512.rb b/test/transport/hmac/test_sha2_512.rb
index 25a92af..7237613 100644
--- a/test/transport/hmac/test_sha2_512.rb
+++ b/test/transport/hmac/test_sha2_512.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/hmac/sha2_512'
diff --git a/test/transport/hmac/test_sha2_512_96.rb b/test/transport/hmac/test_sha2_512_96.rb
index 6de7d2f..4a89a53 100644
--- a/test/transport/hmac/test_sha2_512_96.rb
+++ b/test/transport/hmac/test_sha2_512_96.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'transport/hmac/test_sha2_512'
require 'net/ssh/transport/hmac/sha2_512_96'
diff --git a/test/transport/test_cipher_factory.rb b/test/transport/test_cipher_factory.rb
index 6261856..0d32447 100644
--- a/test/transport/test_cipher_factory.rb
+++ b/test/transport/test_cipher_factory.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/cipher_factory'
diff --git a/test/transport/test_packet_stream.rb b/test/transport/test_packet_stream.rb
index 225927c..c83d9b0 100644
--- a/test/transport/test_packet_stream.rb
+++ b/test/transport/test_packet_stream.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/packet_stream'
diff --git a/test/transport/test_state.rb b/test/transport/test_state.rb
index 8785e68..9bfb3f1 100644
--- a/test/transport/test_state.rb
+++ b/test/transport/test_state.rb
@@ -1,3 +1,5 @@
+# encoding: ASCII-8BIT
+
require 'common'
require 'net/ssh/transport/state'