From f3f09edf94a3930e0ef9b87574f6dbcf2aa1255c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 8 Mar 2013 14:35:28 +0100 Subject: Fix encoding issues with Ruby 2.0 (#87). --- test/test_buffer.rb | 2 ++ test/transport/hmac/test_md5.rb | 2 ++ test/transport/hmac/test_md5_96.rb | 2 ++ test/transport/hmac/test_ripemd160.rb | 2 ++ test/transport/hmac/test_sha1.rb | 2 ++ test/transport/hmac/test_sha1_96.rb | 2 ++ test/transport/hmac/test_sha2_256.rb | 2 ++ test/transport/hmac/test_sha2_256_96.rb | 2 ++ test/transport/hmac/test_sha2_512.rb | 2 ++ test/transport/hmac/test_sha2_512_96.rb | 2 ++ test/transport/test_cipher_factory.rb | 2 ++ test/transport/test_packet_stream.rb | 2 ++ test/transport/test_state.rb | 2 ++ 13 files changed, 26 insertions(+) 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' -- cgit v1.2.1