summaryrefslogtreecommitdiff
path: root/test/uri/test_common.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri/test_common.rb')
-rw-r--r--test/uri/test_common.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb
index 0fe031bdee..dfc4acd8d3 100644
--- a/test/uri/test_common.rb
+++ b/test/uri/test_common.rb
@@ -12,20 +12,20 @@ class TestCommon < Test::Unit::TestCase
end
def test_extract
- assert_equal(['http://example.com'],
+ assert_equal(['http://example.com'],
URI.extract('http://example.com'))
- assert_equal(['http://example.com'],
+ assert_equal(['http://example.com'],
URI.extract('(http://example.com)'))
- assert_equal(['http://example.com/foo)'],
+ assert_equal(['http://example.com/foo)'],
URI.extract('(http://example.com/foo)'))
- assert_equal(['http://example.jphttp://example.jp'],
+ assert_equal(['http://example.jphttp://example.jp'],
URI.extract('http://example.jphttp://example.jp'), "[ruby-list:36086]")
- assert_equal(['http://example.jphttp://example.jp'],
+ assert_equal(['http://example.jphttp://example.jp'],
URI.extract('http://example.jphttp://example.jp', ['http']), "[ruby-list:36086]")
- assert_equal(['http://', 'mailto:'].sort,
+ assert_equal(['http://', 'mailto:'].sort,
URI.extract('ftp:// http:// mailto: https://', ['http', 'mailto']).sort)
# reported by Doug Kearns <djkea2@mugca.its.monash.edu.au>
- assert_equal(['From:', 'mailto:xxx@xxx.xxx.xxx]'].sort,
+ assert_equal(['From:', 'mailto:xxx@xxx.xxx.xxx]'].sort,
URI.extract('From: XXX [mailto:xxx@xxx.xxx.xxx]').sort)
end