This project is archived and is in readonly mode.

#3061 ✓invalid
Kieran P

Failing railties test in latest clone of master

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

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

Comments and changes to this ticket

  • Kieran P

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

    • Title changed from “Failing railties test” to “Failing railties test in latest clone of master”
  • John Pignata

    John Pignata August 17th, 2009 @ 01:45 PM

    Hey Kieran - I can't replicate your problem.

  • Kieran P

    Kieran P August 17th, 2009 @ 10:49 PM

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

  • John Pignata

    John Pignata August 17th, 2009 @ 11:08 PM

    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.

  • Kieran P

    Kieran P August 18th, 2009 @ 02:50 AM

    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?

  • Rizwan Reza

    Rizwan Reza January 17th, 2010 @ 02:15 AM

    I don't think this is applicable anymore.

  • Kieran P

    Kieran P January 17th, 2010 @ 04:05 AM

    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.

  • Ryan Bigg

    Ryan Bigg January 17th, 2010 @ 06:02 AM

    I too cannot duplicate it.

  • Pratik

    Pratik January 17th, 2010 @ 07:02 PM

    • State changed from “new” to “invalid”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages