diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-06-10 12:47:08 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-06-10 12:47:08 +0200 |
commit | 626ae5a9b6531412f598b2f37a15821628857707 (patch) | |
tree | acfd016950ca632391a3e802ffabca28f272d948 /spec/ruby | |
parent | 60af6fef3c664ac7dab53fcde28c30f30ce862aa (diff) | |
download | ruby-626ae5a9b6531412f598b2f37a15821628857707.tar.gz |
Resolv specs should pass on Windows now
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/library/resolv/get_address_spec.rb | 12 | ||||
-rw-r--r-- | spec/ruby/library/resolv/get_addresses_spec.rb | 12 | ||||
-rw-r--r-- | spec/ruby/library/resolv/get_name_spec.rb | 10 | ||||
-rw-r--r-- | spec/ruby/library/resolv/get_names_spec.rb | 10 |
4 files changed, 18 insertions, 26 deletions
diff --git a/spec/ruby/library/resolv/get_address_spec.rb b/spec/ruby/library/resolv/get_address_spec.rb index eecf5e0f6f..baa2b118f3 100644 --- a/spec/ruby/library/resolv/get_address_spec.rb +++ b/spec/ruby/library/resolv/get_address_spec.rb @@ -2,14 +2,12 @@ require_relative '../../spec_helper' require 'resolv' describe "Resolv#getaddress" 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.getaddress("localhost").should == "127.0.0.1" - res.getaddress("localhost4").should == "127.0.0.1" - end + res.getaddress("localhost").should == "127.0.0.1" + res.getaddress("localhost4").should == "127.0.0.1" end it "raises ResolvError if the name can not be looked up" do diff --git a/spec/ruby/library/resolv/get_addresses_spec.rb b/spec/ruby/library/resolv/get_addresses_spec.rb index 7e89c3c884..b84f29b7da 100644 --- a/spec/ruby/library/resolv/get_addresses_spec.rb +++ b/spec/ruby/library/resolv/get_addresses_spec.rb @@ -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 diff --git a/spec/ruby/library/resolv/get_name_spec.rb b/spec/ruby/library/resolv/get_name_spec.rb index 006014bde2..70b91e19e8 100644 --- a/spec/ruby/library/resolv/get_name_spec.rb +++ b/spec/ruby/library/resolv/get_name_spec.rb @@ -2,13 +2,11 @@ require_relative '../../spec_helper' require 'resolv' describe "Resolv#getname" do - platform_is_not :windows do - it "resolves 127.0.0.1" do - hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts")) - res = Resolv.new([hosts]) + it "resolves 127.0.0.1" do + hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts")) + res = Resolv.new([hosts]) - res.getname("127.0.0.1").should == "localhost" - end + res.getname("127.0.0.1").should == "localhost" end it "raises ResolvError when there is no result" do diff --git a/spec/ruby/library/resolv/get_names_spec.rb b/spec/ruby/library/resolv/get_names_spec.rb index 897e24e7ec..c405360615 100644 --- a/spec/ruby/library/resolv/get_names_spec.rb +++ b/spec/ruby/library/resolv/get_names_spec.rb @@ -2,12 +2,10 @@ require_relative '../../spec_helper' require 'resolv' describe "Resolv#getnames" do - platform_is_not :windows do - it "resolves 127.0.0.1" do - hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts")) - res = Resolv.new([hosts]) + it "resolves 127.0.0.1" do + hosts = Resolv::Hosts.new(fixture(__FILE__ , "hosts")) + res = Resolv.new([hosts]) - names = res.getnames("127.0.0.1").should == ["localhost", "localhost4"] - end + names = res.getnames("127.0.0.1").should == ["localhost", "localhost4"] end end |