instiki/vendor/rails/activesupport/test/core_ext/pathname_test.rb
Jacques Distler c358389f25 TeX and CSS tweaks.
Sync with latest Instiki Trunk
(Updates Rails to 1.2.2)
2007-02-09 02:04:31 -06:00

10 lines
338 B
Ruby

require File.dirname(__FILE__) + '/../abstract_unit'
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