[Rails] uninitialized constant Test (NameError)

Tom Mornini
Thu, 02 Feb 2006 09:50:04 -0000

I have three Rails apps on my laptop.

Two can runs tests just fine.

The third generates this error when I try to run any tests:

> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
> active_support/dependencies.rb:200:in `const_missing'':
> uninitialized constant Test (NameError)
>         from ./test/unit/../test_helper.rb:5
>         from ./test/unit/album_test.rb:1
>         from /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/
> rake_test_loader.rb:5
>         from /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/
> rake_test_loader.rb:5

I found this reference on Google, which seems related, but no answer
was provided:

http://wrath.rubyonrails.org/pipermail/rails/2006-January/009628.html

I get the same error whether I run a single test at a time or a full
rake set.

I''ve checked config files, and all seems OK.

I''m *really* pulling my hair out on this. Any help would be
appreciated.

--
-- Tom Mornini