Sha256: 597ed2cc26326a4b4dba6af1c3b15263ac88631c14c3040b7a5aa922a2b2c187
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Whois::Server::Adapters::NotImplemented do before(:each) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-5.0.2 | spec/whois/server/adapters/not_implemented_spec.rb |