From: John Barnette Date: 2010-06-25T07:51:57+09:00 Subject: Re: Liquid tests in ruby 1.9.2 On Jun 24, 2010, at 3:31 PM, Miguel Teixeira wrote: > John Barnette wrote: >> On Jun 24, 2010, at 3:06 PM, Miguel Teixeira wrote: >>> test/assign_test.rb:1:in `require': no such file to load -- test/helper >> "." is most likely not in the load path during tests in 1.9.2. >> >> >> ~ j. > > Thanks John, i just added t.libs << "." in the RakeTask configuration in > Rakefile and it works. > > Why did i need the current directory in the include path if there is no > helper folder? When Rake runs, the cwd is the root of your project. If you add "." to the load path for the test task, the "./test/helper.rb" file will be loaded properly by 'require "test/helper". ~ j.