summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-14 11:18:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-14 11:18:37 +0000
commitbf77099923011a3a0fa0186a8f2dcfb52bdb71bf (patch)
tree951114e95d4a3ddb6fdcbea575d3a40c0f16f5a4 /test/pathname
parent6d9b5fdffcfe2fc2783c5b03f93e2deb372fd260 (diff)
* ext/pathname/pathname.c (path_s_getwd): Pathname.getwd and
Pathname.pwd translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 340af2423d..5d22531885 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -1164,6 +1164,11 @@ class TestPathname < Test::Unit::TestCase
assert_kind_of(Pathname, wd)
end
+ def test_s_pwd
+ wd = Pathname.pwd
+ assert_kind_of(Pathname, wd)
+ end
+
def test_entries
with_tmpchdir('rubytest-pathname') {|dir|
open("a", "w") {}