1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use new_with instead of reinit [ruby-dev:25961]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2005-03-29 13:21:59 +00:00
parent ef049291d4
commit a07bc1123a
2 changed files with 9 additions and 4 deletions

View file

@ -214,19 +214,19 @@ module TupleSpaceTestModule
tmpl = Rinda::DRbObjectTemplate.new(/^druby:\/\/host:/)
assert(tmpl === ro)
ro.reinit(12345, 1234)
ro = DRbObject.new_with(12345, 1234)
assert(!(tmpl === ro))
ro.reinit("druby://foo:12345", 1234)
ro = DRbObject.new_with("druby://foo:12345", 1234)
assert(!(tmpl === ro))
tmpl = Rinda::DRbObjectTemplate.new(/^druby:\/\/(foo|bar):/)
assert(tmpl === ro)
ro.reinit("druby://bar:12345", 1234)
ro = DRbObject.new_with("druby://bar:12345", 1234)
assert(tmpl === ro)
ro.reinit("druby://baz:12345", 1234)
ro = DRbObject.new_with("druby://baz:12345", 1234)
assert(!(tmpl === ro))
end