From a48332871aac262f5d05d19ebd54db09a7ca1abe Mon Sep 17 00:00:00 2001 From: DBA Date: Sun, 22 Aug 2010 19:50:39 +0800 Subject: [PATCH] Test helper - extras path now uses File.join instead of string concatenation - extras path is only loaded into $LOAD_PATH if it's not already part of it --- test/helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index deb8185..b24c3d1 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,6 @@ #!/usr/bin/env ruby -$LOAD_PATH.unshift(File.dirname(__FILE__)+ '/extra') +extras_path = File.join File.dirname(__FILE__), 'extra' +$LOAD_PATH.unshift(extras_path) unless $LOAD_PATH.include? extras_path require 'test/unit' require 'test/unit/assertions'