diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-20 13:32:40 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-20 13:32:40 +0000 |
commit | db824a34dd324685a919e19ffed486ce9a968088 (patch) | |
tree | 9df76c416659a5afb3b78bc670f0c2fcf5762f1c /test/soap | |
parent | 8d0316c5aba7783c546350514c2b9add23c1ed9f (diff) |
* test/wsdl/simpletype/rpc/test_rpc.rb, test/wsdl/ref/test_ref.rb,
test/wsdl/any/test_any.rb test/soap/wsdlDriver/test_calc.rb:
suppress deliberate warnings with $VERBOSE = nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/soap')
-rw-r--r-- | test/soap/wsdlDriver/test_calc.rb | 14 |
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 |