summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-02 12:57:18 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-02 12:57:18 +0000
commitfe992780693814c9d5c2867fef1a48ac558ac8ba (patch)
tree39c26b282f76ebbaa2536458e28c451adad64ffc /test/ruby/test_file.rb
parentc707e73ef8fa36a8b4e38e5e3d3f9726704004dc (diff)
downloadruby-fe992780693814c9d5c2867fef1a48ac558ac8ba.tar.gz
ruby-fe992780693814c9d5c2867fef1a48ac558ac8ba.tar.xz
ruby-fe992780693814c9d5c2867fef1a48ac558ac8ba.zip
* test/ruby/test_file.rb: add tests for uninitialized object.
* test/ruby/test_class.rb: ditto. * test/ruby/test_thread.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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