describe "Resolv#getnames" do
  before(:all) do
    require 'resolv'
  end

  it "resolves 127.0.0.1" do
    res = Resolv.new([Resolv::Hosts.new])

    names = nil

    lambda {
      names = res.getnames("127.0.0.1")
    }.should_not raise_error(Resolv::ResolvError)

    names.should_not == nil
    names.size.should > 0
  end
end
