mirror of
https://github.com/github/rails.git
synced 2026-02-10 14:15:00 -05:00
Add forgotten testcase
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
12
activesupport/test/core_ext/pathname_test.rb
Normal file
12
activesupport/test/core_ext/pathname_test.rb
Normal 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
|
||||
Reference in New Issue
Block a user