mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
parent
c598bc4603
commit
cc4c28d0ce
6 changed files with 7 additions and 43 deletions
|
@ -2,10 +2,7 @@
|
|||
require 'test/unit'
|
||||
require 'uri/ftp'
|
||||
|
||||
module URI
|
||||
|
||||
|
||||
class TestFTP < Test::Unit::TestCase
|
||||
class URI::TestFTP < Test::Unit::TestCase
|
||||
def setup
|
||||
end
|
||||
|
||||
|
@ -29,7 +26,7 @@ class TestFTP < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_parse_invalid
|
||||
assert_raise(InvalidURIError){URI.parse('ftp:example')}
|
||||
assert_raise(URI::InvalidURIError) {URI.parse('ftp:example')}
|
||||
end
|
||||
|
||||
def test_paths
|
||||
|
@ -62,6 +59,3 @@ class TestFTP < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue