diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 15:28:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 15:28:17 +0000 |
commit | ae831861bed60da0acbbaa3144d15a552f9183bf (patch) | |
tree | 205a11163e3fc91ae28323be9d0c0f3480102d6e /test/ruby/test_object.rb | |
parent | 801c8ab026053547093e4b7d3573ab9d7ff0b5f1 (diff) |
* test/ruby/test_object.rb: Specify an exception class for rescue clause.
* test/dbm/test_dbm.rb: Ditto.
* test/gdbm/test_gdbm.rb: Ditto.
* test/sdbm/test_sdbm.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r-- | test/ruby/test_object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index bbc04b0e4a..a0f245a453 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -591,7 +591,7 @@ class TestObject < Test::Unit::TestCase end begin nil.public_send(o) { x = :ng } - rescue + rescue TypeError end assert_equal(:ok, x) end |