Liquid tests in ruby 1.9.2

Discussion in 'Ruby' started by Miguel Teixeira, Jun 24, 2010.

  1. 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/.
     
    Miguel Teixeira, Jun 24, 2010
    #1
    1. Advertising

  2. 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
     
    John Barnette, Jun 24, 2010
    #2
    1. Advertising

  3. 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/.
     
    Miguel Teixeira, Jun 24, 2010
    #3
  4. 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.
     
    John Barnette, Jun 24, 2010
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    8
    Views:
    893
  2. Samuël van Laere

    html forms and liquid designs

    Samuël van Laere, Jun 25, 2003, in forum: HTML
    Replies:
    4
    Views:
    3,265
    combs1945
    Jun 27, 2011
  3. Replies:
    0
    Views:
    516
  4. dayo
    Replies:
    11
    Views:
    349
    Ilya Zakharevich
    Dec 16, 2005
  5. jenny wilkinson
    Replies:
    0
    Views:
    621
    jenny wilkinson
    Mar 20, 2013
Loading...

Share This Page