Sha256: 3bc3c43dbdddb1180ffde8ff7a8c10ea088995fa297fb93e1fee5bcab0c3c0ce
Contents?: true
Size: 402 Bytes
Versions: 32
Compression:
Stored size: 402 Bytes
Contents
require 'test_helper' class ServerAdaptersWebTest < Test::Unit::TestCase include Whois def setup @definition = [:tld, ".foo", nil, { :web => "http://whois.foo" }] @klass = Server::Adapters::Web @server = @klass.new(*@definition) end def test_query error = assert_raise(WebInterfaceError) { @server.query("domain.foo") } assert_match /whois\.foo/, error.message end end
Version data entries
32 entries across 32 versions & 1 rubygems