# Liquid tests in ruby 1.9.2

**URL:** <https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678>\
**Category:** Ruby\
**Created:** [June 25, 2010, 12:06am UTC](https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678 "2010-06-25T00:06:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguelfteixeira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@miguelfteixeira](https://www.ruby-forum.com/u/miguelfteixeira)\
**Post date:** [June 25, 2010, 12:06am UTC](https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678/1 "2010-06-25T00:06:53Z")

</div>

Good evening,

My company has forked the liquid template engine.  
We are trying to know if the template engine works fine with ruby 1.9.2  
and rails 3. Unfortunately we are unable to run the tests because of the  
following error:

mikemacbook:liquid miguelfteixeira$ rake test  
(in /Users/miguelfteixeira/programming/work/gnomeslab/liquid)  
Hoe.new {…} deprecated. Switch to Hoe.spec.  
test/assign\_test.rb:1:in `require': no such file to load -- test/helper (LoadError) from test/assign_test.rb:1:in`\<top (required)\>’  
from  
/Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/rake/rake\_test\_loader.rb:5:in  
`load' from /Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in`block in ’  
from  
/Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/rake/rake\_test\_loader.rb:5:in  
`each' from /Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in`’  
rake aborted!  
Command failed with status (1):  
[/Users/miguelfteixeira/.rvm/rubies/ruby-1…]

The tests are working in ruby 1.8 environment.

Thanks,

Miguel T.

---

<div class="post-metadata">

**Author:** ![miguelfteixeira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@miguelfteixeira](https://www.ruby-forum.com/u/miguelfteixeira)\
**Post date:** [June 25, 2010, 12:14am UTC](https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678/2 "2010-06-25T00:14:52Z")

</div>

On Jun 24, 2010, at 3:06 PM, Miguel T. 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.

---

<div class="post-metadata">

**Author:** ![miguelfteixeira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@miguelfteixeira](https://www.ruby-forum.com/u/miguelfteixeira)\
**Post date:** [June 25, 2010, 12:31am UTC](https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678/3 "2010-06-25T00:31:14Z")

</div>

John B. wrote:

> On Jun 24, 2010, at 3:06 PM, Miguel T. 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?

---

<div class="post-metadata">

**Author:** ![miguelfteixeira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@miguelfteixeira](https://www.ruby-forum.com/u/miguelfteixeira)\
**Post date:** [June 25, 2010, 12:52am UTC](https://www.ruby-forum.com/t/liquid-tests-in-ruby-1-9-2/190678/4 "2010-06-25T00:52:55Z")

</div>

On Jun 24, 2010, at 3:31 PM, Miguel T. wrote:

> 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.
