diff options
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |