diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/drb/drbtest.rb | 13 | ||||
-rw-r--r-- | test/drb/ut_drb.rb | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index a102f7e3bc..d2335dd53f 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -231,6 +231,19 @@ module DRbCore assert_kind_of(DRbObject, v) end end + + def test_11_remote_no_method_error + assert_raises(DRb::DRbRemoteError) do + @there.remote_no_method_error + end + begin + @there.remote_no_method_error + rescue + error = $! + assert_match(/^undefined method .*\(NoMethodError\)/, error.message) + assert_equal('NoMethodError', error.reason) + end + end end module DRbAry diff --git a/test/drb/ut_drb.rb b/test/drb/ut_drb.rb index e7eedf8864..b0d3a5be9a 100644 --- a/test/drb/ut_drb.rb +++ b/test/drb/ut_drb.rb @@ -66,6 +66,10 @@ class DRbEx raise UError end + def remote_no_method_error + invoke_no_method(self) + end + def test_yield yield yield([]) |