aboutsummaryrefslogtreecommitdiffstats
path: root/test/soap/calc/test_calc_cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/calc/test_calc_cgi.rb')
-rw-r--r--test/soap/calc/test_calc_cgi.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 6b26329460..4dbf96468b 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -2,8 +2,13 @@ require 'test/unit'
require 'soap/rpc/driver'
require 'logger'
require 'webrick'
-$:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
-require 'envutil'
+begin
+ loadpath = $:.dup
+ $:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
+ require 'envutil'
+ensure
+ $:.replace(loadpath)
+end
module SOAP