From eb1fa257b5f08aafe440a84a064bf9d93652dabe Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 8 Apr 2004 11:25:24 +0000 Subject: * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: restore $: after require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/soap/calc/test_calc_cgi.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/soap/calc/test_calc_cgi.rb') 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 -- cgit v1.2.3