summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-28 13:46:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-28 13:46:02 +0000
commitb9faaf6a553eb20d0b3c76c8189ead7a1fb2ab3a (patch)
tree0c54e2c54f2fe0e7f02652712a28dbec162314af /test/pathname
parent7361eb9462001a24d9d69f1fe8b36657a0a877a5 (diff)
* ext/pathname/pathname.c (path_birthtime): New method,
Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [ruby-dev:48232] [Feature #9857] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 110b782..98d321f 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -771,6 +771,14 @@ class TestPathname < Test::Unit::TestCase
assert_kind_of(Time, Pathname(__FILE__).atime)
end
+ def test_birthtime
+ assert_kind_of(Time, Pathname(__FILE__).birthtime)
+ rescue NotImplementedError
+ assert_raise(NotImplementedError) do
+ File.birthtime(__FILE__)
+ end
+ end
+
def test_ctime
assert_kind_of(Time, Pathname(__FILE__).ctime)
end