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

Version Path
whois-1.2.2 test/whois/server/adapters/web_test.rb
whois-1.2.1 test/whois/server/adapters/web_test.rb
whois-1.2.0 test/whois/server/adapters/web_test.rb
whois-1.1.8 test/server/adapters/web_test.rb
whois-1.1.7 test/server/adapters/web_test.rb
whois-1.1.6 test/server/adapters/web_test.rb
whois-1.1.5 test/server/adapters/web_test.rb
whois-1.1.4 test/server/adapters/web_test.rb
whois-1.1.3 test/server/adapters/web_test.rb
whois-1.1.2 test/server/adapters/web_test.rb
whois-1.1.1 test/server/adapters/web_test.rb
whois-1.1.0 test/server/adapters/web_test.rb
whois-1.0.12 test/server/adapters/web_test.rb
whois-1.0.11 test/server/adapters/web_test.rb
whois-1.0.10 test/server/adapters/web_test.rb
whois-1.0.9 test/server/adapters/web_test.rb
whois-1.0.8 test/server/adapters/web_test.rb
whois-1.0.7 test/server/adapters/web_test.rb
whois-1.0.6 test/server/adapters/web_test.rb
whois-1.0.5 test/server/adapters/web_test.rb