summaryrefslogtreecommitdiff
path: root/test/drb/test_drbssl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/drb/test_drbssl.rb')
-rw-r--r--test/drb/test_drbssl.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index 6e2e0b1746f..0ca177fe582 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -1,4 +1,5 @@
-require "#{File.dirname(File.expand_path(__FILE__))}/drbtest"
+$:.unshift(File.dirname(File.expand_path(__FILE__)))
+require 'drbtest'
require 'drb/ssl'
class DRbSSLService < DRbService
@@ -22,7 +23,8 @@ class DRbSSLService < DRbService
[ ["C","JP"], ["O","Foo.DRuby.Org"], ["CN", "Sample"] ]
end
- @server = DRb::DRbServer.new(ARGV.shift || 'drbssl://:0', @@manager, config)
+ uri = ARGV.shift if $0 == __FILE__
+ @server = DRb::DRbServer.new(uri || 'drbssl://:0', @@manager, config)
end
class TestDRbSSLCore < Test::Unit::TestCase