Skip to content

Commit

Permalink
Add forgotten testcase
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
seckar committed Apr 4, 2006
1 parent e714b25 commit ccadfc3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions activesupport/test/core_ext/pathname_test.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ccadfc3

Please sign in to comment.