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

drbtest.rb: DRbBase

* test/drb/drbtest.rb (DRbBase): extract from DRbCore and DRbAry for
  setup_service and teardown.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-19 07:47:38 +00:00
parent 226fcd5814
commit b0f623f5f4
5 changed files with 45 additions and 84 deletions

View file

@ -20,9 +20,8 @@ end
class TestDRbUNIXCore < Test::Unit::TestCase
include DRbCore
def setup
@service_name = 'ut_drb_drbunix.rb'
@ext = DRbUNIXService.ext_service(@service_name)
@there = @ext.front
setup_service 'ut_drb_drbunix.rb'
super
end
def test_02_unknown
@ -38,9 +37,8 @@ end
class TestDRbUNIXAry < Test::Unit::TestCase
include DRbAry
def setup
@service_name = 'ut_array_drbunix.rb'
@ext = DRbUNIXService.ext_service(@service_name)
@there = @ext.front
setup_service 'ut_array_drbunix.rb'
super
end
end