mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/drb/drbtest.rb (test_07_public_private_protected_missing):
followed current Ruby specification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
94e82d6c65
commit
5e8e08d74e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 20 00:07:36 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/drb/drbtest.rb (test_07_public_private_protected_missing):
|
||||
followed current Ruby specification.
|
||||
|
||||
Wed Dec 19 23:57:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (dir_inspect, dir_path, dir_tell): check for frozen and closed
|
||||
|
|
|
@ -179,7 +179,7 @@ module DRbCore
|
|||
def test_07_public_private_protected_missing
|
||||
assert_nothing_raised() {
|
||||
begin
|
||||
@there.method_missing(:eval)
|
||||
@there.method_missing(:eval, 'nil')
|
||||
rescue NoMethodError
|
||||
assert_match(/^private method \`eval\'/, $!.message)
|
||||
end
|
||||
|
@ -208,7 +208,7 @@ module DRbCore
|
|||
assert_match(/^undefined method \`undefined_method_test\'/, $!.message)
|
||||
end
|
||||
}
|
||||
assert_raises(SecurityError) do
|
||||
assert_raises(DRb::DRbConnError) do
|
||||
@there.method_missing(:__send__, :to_s)
|
||||
end
|
||||
assert_equal(true, @there.missing)
|
||||
|
|
Loading…
Reference in a new issue