Sha256: 5c08fea97d39f454db945a1a5c32e8defda03004cbdae9262ddf99b5c2bf2853
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
require 'spec_helper' describe Whois::Server::Adapters::None do describe "#lookup" do it "raises Whois::NoInterfaceError" do expect { described_class.new(:tld, ".test", nil).lookup("example.test") }.to raise_error(Whois::NoInterfaceError) end it "customizes the error message according to the type" do expect { described_class.new(:tld, ".test", nil).lookup("example.test") }.to raise_error(Whois::NoInterfaceError, /tld/) expect { described_class.new(:ipv4, "127.0.0.1", nil).lookup("127.0.0.1") }.to raise_error(Whois::NoInterfaceError, /ipv4/) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-5.0.1 | spec/whois/server/adapters/none_spec.rb |
whois-5.0.0 | spec/whois/server/adapters/none_spec.rb |
whois-4.1.0 | spec/whois/server/adapters/none_spec.rb |