aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/pathname_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/pathname_test.rb')
-rw-r--r--activesupport/test/core_ext/pathname_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/pathname_test.rb b/activesupport/test/core_ext/pathname_test.rb
index 3f49b665b2..2933e2d610 100644
--- a/activesupport/test/core_ext/pathname_test.rb
+++ b/activesupport/test/core_ext/pathname_test.rb
@@ -1,12 +1,9 @@
-require 'test/unit'
-require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/pathname'
+require File.dirname(__FILE__) + '/../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