mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
08563f2e14
* Solaries doesn't support Addrinfo.getaddrinfo('localhost', 80), but supports Addrinfo.getaddrinfo('127.0.0.1', 80). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9 lines
236 B
Ruby
9 lines
236 B
Ruby
require_relative '../spec_helper'
|
|
|
|
describe 'Addrinfo.foreach' do
|
|
it 'yields Addrinfo instances to the supplied block' do
|
|
Addrinfo.foreach('127.0.0.1', 80) do |addr|
|
|
addr.should be_an_instance_of(Addrinfo)
|
|
end
|
|
end
|
|
end
|