Sha256: 2cbf41f57a522b1ab67a0dd12297cf4a07e5d2d3d59c4cdaaf7d609eda07dd85

Contents?: true

Size: 446 Bytes

Versions: 25

Compression:

Stored size: 446 Bytes

Contents

require 'test_helper'

class WebInterfaceErrorTest < Test::Unit::TestCase

  def setup
    @klass = Whois::WebInterfaceError
  end

  def test_url
    assert_raise(ArgumentError) { @klass.new }
  end

  def test_url
    error = @klass.new("http://example.com")
    assert_equal "http://example.com", error.url
  end

  def test_message
    error = @klass.new("http://example.com")
    assert_match %r{http://example.com}, error.message
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

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