T
Trans
Don't know how much gulf this can take, but I sure would like as small
a version as I can get.
paths = File.expand_path(File.dirname(__FILE__)).split('/')
paths.size.downto(1) do |i|
f = (paths.slice(0..i)+['test']).join('/')
$TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
end
raise unless $TESTDIR
T.
a version as I can get.
paths = File.expand_path(File.dirname(__FILE__)).split('/')
paths.size.downto(1) do |i|
f = (paths.slice(0..i)+['test']).join('/')
$TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
end
raise unless $TESTDIR
T.