From: Carl Jenkins Date: 2010-07-24T06:58:08+09:00 Subject: Re: Typical Ruby (non-rails) project structure. unknown wrote: > On Fri, Jul 23, 2010 at 2:28 PM, Carl Jenkins > wrote: >>> but >> �test/ >> �-new_test.rb >> >> In order to test the new_file.rb my new_test.rb must have the path to >> the new_file.rb as the require correct? Something like require >> '../lib/common/new_file' >> >> Or is there a different way to do that? > > Just looked at one of my bones-generated projects: > > $ cat spec/spec_helper.rb > > require File.expand_path( > File.join(File.dirname(__FILE__), %w[.. lib fooz])) > [...] haha - that's genius.. (I should have known better and just looked myself.) -- Posted via http://www.ruby-forum.com/.