diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-04-04 19:40:34 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-04-04 19:40:34 +0000 |
commit | ccadfc36953a8547dc9386eb77eb4fc1147817f3 (patch) | |
tree | 09e294ccf1ba70800841ff8ffed3e569ec5811eb /activesupport/test/core_ext | |
parent | e714b25723b674bb6d66af40ea9047166907616b (diff) | |
download | rails-ccadfc36953a8547dc9386eb77eb4fc1147817f3.tar.gz rails-ccadfc36953a8547dc9386eb77eb4fc1147817f3.tar.bz2 rails-ccadfc36953a8547dc9386eb77eb4fc1147817f3.zip |
Add forgotten testcase
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/pathname_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/pathname_test.rb b/activesupport/test/core_ext/pathname_test.rb new file mode 100644 index 0000000000..3f49b665b2 --- /dev/null +++ b/activesupport/test/core_ext/pathname_test.rb @@ -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 |