Sha256: 23c2e076a23a472e99a830644fe51d5e2c0eba23c911102964741fb53ab09bd3
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 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 expect(subject.resolver(nameserver)).to be_kind_of(Resolv::DNS) end it "should return the default resolver otherwise" do expect(subject.resolver).to eq(Resolv) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-support-0.5.2 | spec/extensions/resolv_spec.rb |