summaryrefslogtreecommitdiff
path: root/test/pathname/test_pathname.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r--test/pathname/test_pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index fbf4bb34598..f8e4937802c 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -1439,6 +1439,7 @@ class TestPathname < Test::Unit::TestCase
Pathname.new("/foo/bar").relative_path_from("/foo/baz"))
obj = Object.new
def obj.cleanpath() Pathname.new("/foo/baz") end
+ def obj.is_a?(m) m == Pathname end
assert_equal(
Pathname.new("../bar"),
Pathname.new("/foo/bar").relative_path_from(obj))