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.instance_of?(Addrinfo)
    end
  end
end
