From b9faaf6a553eb20d0b3c76c8189ead7a1fb2ab3a Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 28 Jun 2014 13:46:02 +0000 Subject: * 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 --- test/pathname/test_pathname.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/pathname') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 110b78283c..98d321f1d1 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 -- cgit v1.2.3