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

Version Path
kajam-1.0.3.rc2 vendor/rails/activesupport/test/core_ext/pathname_test.rb
radiant-1.0.0.rc2 vendor/rails/activesupport/test/core_ext/pathname_test.rb
radiant-1.0.0.rc1 vendor/rails/activesupport/test/core_ext/pathname_test.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/test/core_ext/pathname_test.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/test/core_ext/pathname_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/test/core_ext/pathname_test.rb
antfarm-0.3.0 rails/vendor/rails/activesupport/test/core_ext/pathname_test.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/test/core_ext/pathname_test.rb