Sha256: 0ae28d14775382c5fb5278d6b92c6b0c3f64afe1d2994086ab2014df6a3b75d4
Contents?: true
Size: 673 Bytes
Versions: 4
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true 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
4 entries across 4 versions & 1 rubygems