methods and allows Ruby 1.8.7 to run the server.
- test/TC_floodgate.rb failed with Ruby 1.8.7. This issue has
been fixed.
+ - test/TC_uchifuzume.rb did not run with Ruby 1.8.7. This issue
+ has been fixed.
2012-01-06 Daigo Moriwaki <daigo at debian dot org>
class UchifuzumeTest < ReadFileClient
def test_uchifuzume
- csa = File.read(filepath("uchifuzume.csa"), :encoding => Encoding::Shift_JIS)
+ csa = File.open(filepath("uchifuzume.csa"), "r+:shift_jis"){|f| f.read}
handshake(csa)
@p2.puts "-0064FU"
@p1.puts "%TORYO"
end
def test_not_uchifuzume
- csa = File.read(filepath("not_uchifuzume.csa"), :encoding => Encoding::Shift_JIS)
+ csa = File.open(filepath("not_uchifuzume.csa"), "r+:shift_jis"){|f| f.read}
handshake(csa)
@p2.puts "-0092FU"
@p1.puts "%TORYO"