summaryrefslogtreecommitdiff
path: root/test/uri/test_ftp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri/test_ftp.rb')
-rw-r--r--test/uri/test_ftp.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/uri/test_ftp.rb b/test/uri/test_ftp.rb
index 0d76c4497b..cc6843e60f 100644
--- a/test/uri/test_ftp.rb
+++ b/test/uri/test_ftp.rb
@@ -27,6 +27,10 @@ class TestFTP < Test::Unit::TestCase
assert_equal('pass', url.password)
end
+ def test_parse_invalid
+ assert_raise(InvalidURIError){URI.parse('ftp:example')}
+ end
+
def test_paths
# If you think what's below is wrong, please read RubyForge bug 2055,
# RFC 1738 section 3.2.2, and RFC 2396.