Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Liquid tests in ruby 1.9.2

Reply
Thread Tools

Liquid tests in ruby 1.9.2

 
 
Miguel Teixeira
Guest
Posts: n/a
 
      06-24-2010
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 <main>'
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
`<main>'
rake aborted!
Command failed with status (1):
[/Users/miguelfteixeira/.rvm/rubies/ruby-1....]

The tests are working in ruby 1.8 environment.

Thanks,

Miguel Teixeira
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
John Barnette
Guest
Posts: n/a
 
      06-24-2010
On Jun 24, 2010, at 3:06 PM, Miguel Teixeira wrote:
> Good evening,
>=20
> 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:
>=20
> 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

"." is most likely not in the load path during tests in 1.9.2.


~ j.


> (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/r=
ake/rake_test_loader.rb:5:in
> `load'
> from
> =

/Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/r=
ake/rake_test_loader.rb:5:in
> `block in <main>'
> from
> =

/Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/r=
ake/rake_test_loader.rb:5:in
> `each'
> from
> =

/Users/miguelfteixeira/.rvm/gems/ruby-1.9.2-preview3/gems/rake-0.8.7/lib/r=
ake/rake_test_loader.rb:5:in
> `<main>'
> rake aborted!
> Command failed with status (1):
> [/Users/miguelfteixeira/.rvm/rubies/ruby-1....]
>=20
> The tests are working in ruby 1.8 environment.
>=20
> Thanks,
>=20
> Miguel Teixeira
> --=20
> Posted via http://www.ruby-forum.com/.
>=20



 
Reply With Quote
 
 
 
 
Miguel Teixeira
Guest
Posts: n/a
 
      06-24-2010
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?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
John Barnette
Guest
Posts: n/a
 
      06-24-2010
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.
>>=20
>>=20
>> ~ j.

>=20
> Thanks John, i just added t.libs << "." in the RakeTask configuration =

in=20
> Rakefile and it works.
>=20
> Why did i need the current directory in the include path if there is =

no=20
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Liquid Technologies Unvei Liquid XML Studio 2013 jenny wilkinson XML 0 03-20-2013 07:55 AM
Liquid Technologies Announces Availability of Liquid XML 2008 (v6.1) announcements@liquid-technologies.com XML 0 01-17-2008 02:07 PM
Junit tests, setting up tests without having to create a billion methods xyzzy12@hotmail.com Java 8 02-28-2006 08:59 PM
Tests without study guides or practice tests? =?Utf-8?B?Q2hyaXNS?= Microsoft Certification 8 12-20-2005 04:59 AM
Constant.t fails 240 of 272 tests and recurs.t fails 1 of 25 tests on HPUX using perl 5.8.7 dayo Perl Misc 11 12-16-2005 09:09 PM



Advertisments