summaryrefslogtreecommitdiff
path: root/test/drb/test_drb.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
commit00b4a3f9c4aaf5aa038a9530ec515e1718ae1c42 (patch)
treeb57bc2afea00aa87978f691526dd7adc1b8a067d /test/drb/test_drb.rb
parent48fdf59dcfbb6964d992b6f31d0eb6f023776145 (diff)
* test: assert_raises has been deprecated since a long time ago.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/test_drb.rb')
-rw-r--r--test/drb/test_drb.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index 106e958d9a3..57cf7175d73 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -219,21 +219,21 @@ class TestDRbEval # < Test::Unit::TestCase
end
def test_01_safe1_safe4_eval
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
@there.method_missing(:instance_eval, 'ENV.inspect')
end
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
@there.method_missing(:send, :eval, 'ENV.inspect')
end
remote_class = @there.remote_class
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
remote_class.class_eval('ENV.inspect')
end
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
remote_class.module_eval('ENV.inspect')
end
@@ -246,11 +246,11 @@ class TestDRbEval # < Test::Unit::TestCase
assert_equal(1, remote_class.module_eval('1'))
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
remote_class.class_eval('ENV = {}')
end
- assert_raises(SecurityError) do
+ assert_raise(SecurityError) do
remote_class.module_eval('ENV = {}')
end
end
@@ -283,7 +283,7 @@ class TestDRbLarge < Test::Unit::TestCase
end
def test_04_many_arg
- assert_raises(ArgumentError) {
+ assert_raise(ArgumentError) {
@there.arg_test(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
}
end