Vanilla Rails 2.1 and Unit Test Error

Derek P.
Tue, 03 Jun 2008 22:52:56 -0000

I did a basic rails 2.1 command and made a basic model and ran the
unit tests with rake, I get this error:

LoadError: no such file to load — test_helper

I went back and compared my old unit tests from other projects to the
one that was generated, this is what I found:

RAILS 2.1:
require ''test_helper''

RAILS 2.0.2:
require File.dirname(__FILE__) + ''/../test_helper''


Now, if I copy/paste my old rails 2.0.2 require statement, it works
perfectly. Did this get overlooked?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---