[ruby/uri] Define test cases as qualified class names

aaa22a2443
This commit is contained in:
Nobuyoshi Nakada 2023-05-04 22:56:27 +09:00 committed by git
parent c598bc4603
commit cc4c28d0ce
6 changed files with 7 additions and 43 deletions

View file

@ -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