From: Trans Date: 2005-10-23T08:17:00+09:00 Subject: [GULF] Find the test dir 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.