1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (rb_stat_inspect): don't raise if self is not initialized.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-21 10:20:55 +00:00
parent 61acccefb7
commit cefd28a84f
3 changed files with 11 additions and 0 deletions

View file

@ -117,5 +117,6 @@ class TestFile < Test::Unit::TestCase
def test_uninitialized
assert_raise(TypeError) { File::Stat.allocate.readable? }
assert_nothing_raised { File::Stat.allocate.inspect }
end
end