summaryrefslogtreecommitdiff
path: root/ruby/test/Ice/slicing/objects/AllTests.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/test/Ice/slicing/objects/AllTests.rb')
-rw-r--r--ruby/test/Ice/slicing/objects/AllTests.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/ruby/test/Ice/slicing/objects/AllTests.rb b/ruby/test/Ice/slicing/objects/AllTests.rb
index 190a37e33d8..66e4e81b4fc 100644
--- a/ruby/test/Ice/slicing/objects/AllTests.rb
+++ b/ruby/test/Ice/slicing/objects/AllTests.rb
@@ -10,14 +10,8 @@
require 'Ice'
Ice::loadSlice('-I. --all ClientPrivate.ice')
-def test(b)
- if !b
- raise RuntimeError, 'test assertion failed'
- end
-end
-
-def allTests(communicator)
- obj = communicator.stringToProxy("Test:default -p 12010")
+def allTests(helper, communicator)
+ obj = communicator.stringToProxy("Test:#{helper.getTestEndpoint()}")
t = Test::TestIntfPrx::checkedCast(obj)
print "base as Object... "