From bf77099923011a3a0fa0186a8f2dcfb52bdb71bf Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 14 Sep 2010 11:18:37 +0000 Subject: * 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 --- test/pathname/test_pathname.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/pathname') 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") {} -- cgit v1.2.3