зеркало из https://github.com/github/ruby.git
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:
Родитель
ef049291d4
Коммит
a07bc1123a
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 29 22:20:49 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/rinda/test_rinda.rb: use DRbObject.new_with instead of reinit.
|
||||
[ruby-dev:25961]
|
||||
|
||||
Tue Mar 29 00:04:57 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* lib/drb/drb.rb: move method DRbObject#reinit to DRbObject.new_with.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче