Sha256: 9fa2042b8ad16eeb3f1497caeee6516484163252dbd7be44e8f501e5eb620cf1
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Whois::Server::Adapters::NotImplemented do before do @definition = [:ipv6, "2001:0000::/32", "teredo", { adapter: Whois::Server::Adapters::NotImplemented }] end describe "#lookup" do it "raises Whois::ServerNotImplemented" do expect { described_class.new(*@definition).lookup("example.test") }.to raise_error(Whois::ServerNotImplemented) end it "customizes the error message according to the host" do expect { described_class.new(*@definition).lookup("example.test") }.to raise_error(Whois::ServerNotImplemented, /teredo/) end end end
Version data entries
3 entries across 3 versions & 1 rubygems