diff options
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r-- | test/pathname/test_pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 4e88db754d..24f6bb942d 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -213,6 +213,10 @@ class TestPathname < Test::Unit::TestCase defassert(:plus, 'a//b/d//e', 'a//b/c', '../d//e') + def test_slash + assert_kind_of(Pathname, Pathname("a") / Pathname("b")) + end + def test_parent assert_equal(Pathname("."), Pathname("a").parent) end |