Project

General

Profile

Bug #6386 ยป 0001-test-uri-test_generic-test_parse.patch

zzak (Zachary Scott), 05/02/2012 06:29 AM

View differences:

test/uri/test_generic.rb
144 144
    assert_equal(nil, url.user)
145 145
    assert_equal(nil, url.password)
146 146
    assert_equal(nil, url.userinfo)
147

  
148
    # 10
149
    assert_raise(URI::InvalidURIError) { URI.parse('http:/foo/') }
150
    assert_raise(URI::InvalidURIError) { URI.parse('ftp:/foo/') }
151
    assert_raise(URI::InvalidURIError) { URI.parse('ssh:/foo/') }
147 152
  end
148 153

  
149 154
  def test_merge