summaryrefslogtreecommitdiff
path: root/test/soap/wsdlDriver/test_calc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/wsdlDriver/test_calc.rb')
-rw-r--r--test/soap/wsdlDriver/test_calc.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/soap/wsdlDriver/test_calc.rb b/test/soap/wsdlDriver/test_calc.rb
index f1cc116a59..d031f663a3 100644
--- a/test/soap/wsdlDriver/test_calc.rb
+++ b/test/soap/wsdlDriver/test_calc.rb
@@ -74,7 +74,9 @@ class TestCalc < Test::Unit::TestCase
end
def test_old_driver
- @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_driver
+ silent do
+ @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_driver
+ end
@client.wiredump_dev = STDOUT if $DEBUG
@client.endpoint_url = "http://localhost:#{Port}/"
@client.generate_explicit_type = true
@@ -82,6 +84,16 @@ class TestCalc < Test::Unit::TestCase
@client.generate_explicit_type = false
assert_equal(0.3, @client.add(0.1, 0.2))
end
+
+ def silent
+ back = $VERBOSE
+ $VERBOSE = nil
+ begin
+ yield
+ ensure
+ $VERBOSE = back
+ end
+ end
end