blob: 75c1d1dea2e146f4a8dc912f43f229663b23913b (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../spec_helper'
describe 'Addrinfo.foreach' do
it 'yields Addrinfo instances to the supplied block' do
Addrinfo.foreach('localhost', 80) do |addr|
addr.should be_an_instance_of(Addrinfo)
end
end
end
|