summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 22dc1a89e..26b29785a 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -115,4 +115,7 @@ class TestFile < Test::Unit::TestCase
}
end
+ def test_uninitialized
+ assert_raise(TypeError) { File::Stat.allocate.readable? }
+ end
end