Sha256: d5a0ad4099071f3ceffc17b38037ab6e1f8d8a4657b181b8f5cab4ace33b5bd3
Contents?: true
Size: 427 Bytes
Versions: 9
Compression:
Stored size: 427 Bytes
Contents
require 'spec_helper' require 'ronin/extensions/resolv' describe Resolv do describe "resolver" do let(:nameserver) { '4.2.2.1' } subject { Resolv } it "should create a new Resolv::DNS object if a nameserver is given" do subject.resolver(nameserver).should be_kind_of(Resolv::DNS) end it "should return the default resolver otherwise" do subject.resolver.should == Resolv end end end
Version data entries
9 entries across 9 versions & 1 rubygems