5 class TestNoDnsOnTcpConnect < Test::Unit::TestCase
6 def test_connect_remote
7 assert_raises(ArgumentError) { Kgio::TCPSocket.new("example.com", 666) }
10 def test_connect_localhost
11 assert_raises(ArgumentError) { Kgio::TCPSocket.new("localhost", 666) }