aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathname
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 94bd8d8872..4e88db754d 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -242,6 +242,8 @@ class TestPathname < Test::Unit::TestCase
assert_equal(Pathname("/c"), r)
r = Pathname("/a").join("/b", "/c")
assert_equal(Pathname("/c"), r)
+ r = Pathname("/foo/var").join()
+ assert_equal(Pathname("/foo/var"), r)
end
def test_absolute