Sha256: dda9496b8c01b7feec7f66e60ea9d8fa4fae6403b1e264e273d7426f553d9c85
Contents?: true
Size: 309 Bytes
Versions: 8
Compression:
Stored size: 309 Bytes
Contents
require '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
8 entries across 7 versions & 4 rubygems