Add forgotten testcase

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Nicholas Seckar
2006-04-04 19:40:34 +00:00
parent e714b25723
commit ccadfc3695

View File

@@ -0,0 +1,12 @@
require 'test/unit'
require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/pathname'
class TestPathname < Test::Unit::TestCase
def test_clean_within
assert_equal "Hi", Pathname.clean_within("Hi")
assert_equal "Hi", Pathname.clean_within("Hi/a/b/../..")
assert_equal "Hello\nWorld", Pathname.clean_within("Hello/a/b/../..\na/b/../../World/c/..")
end
end