diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-05 12:49:27 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-05 12:49:27 +0000 |
commit | 391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9 (patch) | |
tree | b51b61bc0abb0a66988b84f10eaf5e6f839661c3 /test | |
parent | a210f7c225b0328ac16748c21e68c28f2236454e (diff) | |
download | ruby-391fc2eeecfc2f0d0f851b0c27ba02e041fe2cd9.tar.gz |
* ext/pathname/lib/pathname.rb (Pathname#/): Aliased to Pathname#+.
Suggested by Alexey Muranov. [ruby-core:61432] [Feature #9625]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 |