From: <jh...@us...> - 2011-07-08 23:30:49
|
Revision: 295 http://etch.svn.sourceforge.net/etch/?rev=295&view=rev Author: jheiss Date: 2011-07-08 23:30:43 +0000 (Fri, 08 Jul 2011) Log Message: ----------- Use "$:.unshift" rather than "$: <<" when manipulating the library search path. Otherwise the system paths are searched first. Modified Paths: -------------- trunk/test/test_outputcapture.rb trunk/test/unit/test_xml_abstraction.rb Modified: trunk/test/test_outputcapture.rb =================================================================== --- trunk/test/test_outputcapture.rb 2011-07-08 23:18:47 UTC (rev 294) +++ trunk/test/test_outputcapture.rb 2011-07-08 23:30:43 UTC (rev 295) @@ -6,8 +6,8 @@ require "./#{File.dirname(__FILE__)}/etchtest" require 'timeout' -$: << File.join(EtchTests::CLIENTDIR, 'lib') -$: << File.join(EtchTests::SERVERDIR, 'lib') +$:.unshift(File.join(EtchTests::CLIENTDIR, 'lib')) +$:.unshift(File.join(EtchTests::SERVERDIR, 'lib')) require 'etch/client' class EtchOutputCaptureTests < Test::Unit::TestCase Modified: trunk/test/unit/test_xml_abstraction.rb =================================================================== --- trunk/test/unit/test_xml_abstraction.rb 2011-07-08 23:18:47 UTC (rev 294) +++ trunk/test/unit/test_xml_abstraction.rb 2011-07-08 23:30:43 UTC (rev 295) @@ -1,6 +1,6 @@ require 'test/unit' require 'tempfile' -$: << "#{File.dirname(File.expand_path(__FILE__))}/../../server/lib" +$:.unshift("#{File.dirname(File.expand_path(__FILE__))}/../../server/lib") require 'etch' # Test the XML abstraction methods in etch.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |