1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-10-26 20:53:01 +02:00
parent 3eb0d50c0b
commit 664e96b1de
42 changed files with 484 additions and 117 deletions

View file

@ -40,7 +40,7 @@ describe "TCPServer.new" do
end
it "binds to INADDR_ANY if the hostname is empty and the port is a string" do
@server = TCPServer.new('', 0)
@server = TCPServer.new('', '0')
addr = @server.addr
addr[0].should == 'AF_INET'
addr[1].should be_kind_of(Integer)