Sha256: 2f78ab421a4850e6d7caadcb67e326dc3489aae4666ec0b14b871327b6fffd45
Contents?: true
Size: 338 Bytes
Versions: 69
Compression:
Stored size: 338 Bytes
Contents
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
Version data entries
69 entries across 69 versions & 3 rubygems