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