Roger's woze

August 7, 2009

ruby 1.9.2 woe

Filed under: Uncategorized — rogerdpack @ 5:39 pm
C:\dev\ruby\ties>ruby  test/functional/store_controller_test.rb
test/functional/store_controller_test.rb:1:in `require’: no such file to load — test/functional/../test_helpertest/functional/store_controller_test.rb:1:in `<main>’

C:\dev\ruby\ties>ruby  test/functional/store_controller_test.rb

test/functional/store_controller_test.rb:1:in `require’: no such file to load — test/functional/../test_helper (LoadError)

from test/functional/store_controller_test.rb:1:in `<main>’

meant “you can’t use File.dirname–you [apparently] need to use File.expand_path(File.dirname) with 1.9.2 since it hates relatives paths and dirname gives a relative path”

2 Comments »

  1. Hi Roger,

    Or simply $:.unshift “.” ( via raggi )

    Comment by Lourens — August 10, 2009 @ 9:52 pm

  2. yeah–just hard from the command line :)
    I suppose that’s the first thing we’ll all put in our ruby scripts when we shift to 1.9.2 :)

    Comment by rogerdpack — August 10, 2009 @ 10:08 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress