Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Failing railties test in latest clone of master

#3061

When I run 'rake' from the latest checkout of master, everything up to Railties passes nicely, but railties errors out with:

21 tests, 85 assertions, 0 failures, 0 errors
test/fixtures/tmp/test/functional/users_controller_test.rb:1:in `require': no such file to load -- test_helper (LoadError)
    from test/fixtures/tmp/test/functional/users_controller_test.rb:1
rake aborted!
Failures
/Users/kieran/Other/Rails Edge/rails-master/railties/Rakefile:33
(See full trace by running task with --trace)
rake aborted!
Errors in railties
/Users/kieran/Other/Rails Edge/rails-master/Rakefile:22
(See full trace by running task with --trace)

The line causing issues is:

require 'test_helper'

Rubygems not in the load path perhaps?

The only files close to it are railties/lib/test_help.rb and railties/test/plugin_test_helper.rb

Reported by Kieran P · August 16th, 2009 @ 06:56 AM

State: invalid
Milestone: none
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Kieran P
    Kieran P
    • Title changed from Failing railties test to Failing railties test in latest clone of master

    August 16th, 2009 @ 06:56 AM

  2. John Pignata
    John Pignata

    Hey Kieran - I can't replicate your problem.

    August 17th, 2009 @ 01:45 PM

  3. Kieran P
    Kieran P

    Well, it is still happening in the latest rails master, but does not affect Rails 2.3.

    August 17th, 2009 @ 10:49 PM

  4. John Pignata
    John Pignata

    It's not happening in my master and more importantly it's not happening on http://ci.rubyonrails.org. I'd check your setup. I thought maybe it had something to do with the space in the directory name, but I can't duplicate it using the same directory structure.

    August 17th, 2009 @ 11:08 PM

  5. Kieran P
    Kieran P

    I tried removing the space in the path, no difference.

    The rest of the tests (activerecord, activesupport actionmailer etc) pass without error (occasional warning, but still passes).

    It's only this test. I've seen the same issue when using an brand new app with scaffolding. The generated unit tests fail, until switch 'require 'test_helper'' with something like "require File.join(FILE, '../test_helper')".

    So it doesn't appear as if the path to test_helper is set in my environment. Any ideas on how to check this? Any console commands you'd like to compare?

    August 18th, 2009 @ 02:50 AM

  6. Rizwan Reza
    Rizwan Reza

    I don't think this is applicable anymore.

    January 17th, 2010 @ 02:15 AM

  7. Kieran P
    Kieran P

    I can't verify if this issue is still present. I'm getting quite a few fails and errors in the latest source (one in action mailer, some in AR of all database types, and all through railties about cookies). When things fix up a bit, I'll double check for you.

    January 17th, 2010 @ 04:05 AM

  8. Ryan Bigg
    Ryan Bigg

    I too cannot duplicate it.

    January 17th, 2010 @ 06:02 AM

  9. Pratik
    Pratik
    • State changed from new to invalid

    January 17th, 2010 @ 07:02 PM