summaryrefslogtreecommitdiff
path: root/test/dbm/test_dbm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/dbm/test_dbm.rb')
-rw-r--r--test/dbm/test_dbm.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 159ab43f35d..dc02d30c766 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