From 3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Sep 2008 17:44:39 +0000 Subject: * test: assert_raises has been deprecated since a long time ago. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dbm/test_dbm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/dbm') diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 159ab43f3..dc02d30c7 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -534,7 +534,7 @@ if defined? DBM v = DBM.open("#{@tmproot}/a", nil, DBM::READER) {|d| # Errno::EPERM is raised on Solaris which use ndbm. # DBMError is raised on Debian which use gdbm. - assert_raises(Errno::EPERM, DBMError) { d["k"] = "v" } + assert_raise(Errno::EPERM, DBMError) { d["k"] = "v" } true } assert(v) @@ -555,7 +555,7 @@ if defined? DBM def test_freeze DBM.open("#{@tmproot}/a") {|d| d.freeze - assert_raises(RuntimeError) { d["k"] = "v" } + assert_raise(RuntimeError) { d["k"] = "v" } } end end -- cgit