diff options
Diffstat (limited to 'test/wsdl/any/test_any.rb')
-rw-r--r-- | test/wsdl/any/test_any.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/wsdl/any/test_any.rb b/test/wsdl/any/test_any.rb index 7b0e480be9..aab5eb631f 100644 --- a/test/wsdl/any/test_any.rb +++ b/test/wsdl/any/test_any.rb @@ -21,7 +21,9 @@ class TestAny < Test::Unit::TestCase gen.opt['servant_skelton'] = nil gen.opt['standalone_server_stub'] = nil gen.opt['force'] = true - gen.run + suppress_warning do + gen.run + end compare("expectedDriver.rb", "echoDriver.rb") compare("expectedEcho.rb", "echo.rb") compare("expectedService.rb", "echo_service.rb") @@ -40,6 +42,16 @@ class TestAny < Test::Unit::TestCase def loadfile(file) File.open(pathname(file)) { |f| f.read } end + + def suppress_warning + back = $VERBOSE + $VERBOSE = nil + begin + yield + ensure + $VERBOSE = back + end + end end |