Sha256: 18878ddd60df667fab5cf444777f7100a26e8f03cba7700d049ef364dd988253
Contents?: true
Size: 537 Bytes
Versions: 13
Compression:
Stored size: 537 Bytes
Contents
require 'test_helper' class ServerAdaptersNoneTest < Test::Unit::TestCase include Whois def setup @klass = Server::Adapters::None end def test_query @server = @klass.new(:tld, ".foo", nil, {}) error = assert_raise(NoInterfaceError) { @server.query("domain.foo") } assert_match /tld/, error.message end def test_query_with_ipv4 @server = @klass.new(:ipv4, "127.0.0.1", nil, {}) error = assert_raise(NoInterfaceError) { @server.query("domain.foo") } assert_match /ipv4/, error.message end end
Version data entries
13 entries across 13 versions & 1 rubygems