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
This commit is contained in:
DBA
2010-08-22 19:50:39 +08:00
committed by Tobias Lütke
parent bd7f867759
commit a48332871a

View File

@@ -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'