1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Resolv specs should pass on Windows now

This commit is contained in:
Benoit Daloze 2019-06-10 12:47:08 +02:00
parent 60af6fef3c
commit 626ae5a9b6
4 changed files with 18 additions and 26 deletions

View file

@ -2,13 +2,11 @@ require_relative '../../spec_helper'
require 'resolv'
describe "Resolv#getaddresses" do
platform_is_not :windows do
it "resolves localhost" do
hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts"))
res = Resolv.new([hosts])
it "resolves localhost" do
hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts"))
res = Resolv.new([hosts])
res.getaddresses("localhost").should == ["127.0.0.1"]
res.getaddresses("localhost4").should == ["127.0.0.1"]
end
res.getaddresses("localhost").should == ["127.0.0.1"]
res.getaddresses("localhost4").should == ["127.0.0.1"]
end
end