summaryrefslogtreecommitdiff
path: root/test/drb/drbtest.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/drbtest.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/drbtest.rb')
-rw-r--r--test/drb/drbtest.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index 143d856a1eb..e06139a9d6c 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -127,23 +127,23 @@ module DRbCore
assert_equal('DRbEx', obj.name)
end
- assert_raises(DRb::DRbUnknownError) do
+ assert_raise(DRb::DRbUnknownError) do
@there.unknown_error
end
onecky = FailOnecky.new('3')
- assert_raises(FailOnecky::OneckyError) do
+ assert_raise(FailOnecky::OneckyError) do
@there.sample(onecky, 1, 2)
end
end
def test_03
assert_equal(8, @there.sum(1, 1, 1, 1, 1, 1, 1, 1))
- assert_raises(ArgumentError) do
+ assert_raise(ArgumentError) do
@there.sum(1, 1, 1, 1, 1, 1, 1, 1, 1)
end
- assert_raises(DRb::DRbConnError) do
+ assert_raise(DRb::DRbConnError) do
@there.sum('1' * 4096)
end
end
@@ -168,10 +168,10 @@ module DRbCore
def test_06_timeout
ten = Onecky.new(10)
- assert_raises(TimeoutError) do
+ assert_raise(TimeoutError) do
@there.do_timeout(ten)
end
- assert_raises(TimeoutError) do
+ assert_raise(TimeoutError) do
@there.do_timeout(ten)
end
end
@@ -208,7 +208,7 @@ module DRbCore
assert_match(/^undefined method \`undefined_method_test\'/, $!.message)
end
}
- assert_raises(DRb::DRbConnError) do
+ assert_raise(DRb::DRbConnError) do
@there.method_missing(:__send__, :to_s)
end
assert_equal(true, @there.missing)
@@ -261,7 +261,7 @@ module DRbCore
end
def test_11_remote_no_method_error
- assert_raises(DRb::DRbRemoteError) do
+ assert_raise(DRb::DRbRemoteError) do
@there.remote_no_method_error
end
begin