Sha256: c585d41e2920c600d2170734799c4c3b9710c33886b5f947c41e3892b12e9e79
Contents?: true
Size: 588 Bytes
Versions: 18
Compression:
Stored size: 588 Bytes
Contents
require "spec_helper" describe Whois::Server::Adapters::Web do before(:each) do @definition = [:tld, ".test", nil, { :web => "http://whois.test" }] end describe "#query" do it "raises Whois::WebInterfaceError" do lambda do klass.new(*@definition).query("example.test") end.should raise_error(Whois::WebInterfaceError) end it "customizes the error message with the WHOIS web url" do lambda do klass.new(*@definition).query("example.test") end.should raise_error(Whois::WebInterfaceError, /whois\.test/) end end end
Version data entries
18 entries across 18 versions & 1 rubygems