1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

STDIN is not valid when ruby doesn't have tty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-15 02:37:23 +00:00
parent 10c73a7b44
commit a33b5edda0

View file

@ -161,7 +161,9 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
end
def test_not_started_session
OpenSSL::SSL::SSLSocket.new(STDIN).cert
open(__FILE__) do |f|
OpenSSL::SSL::SSLSocket.new(f).cert
end
end
def test_ssl_read_nonblock