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:
I faced this same problem recently as well. It turns out that I had a
require in app/controllers/application.rb that wasn’t finding the file,
and
was causing an exception to be thrown. Somehow, this got in the way of
loading ‘test/unit.’ (Oddly enough, the tests all worked fine on
windows. It
turns out my bug was related to the fact that filenames on unix are case
sensitive, but they aren’t on windows!).
I dont think thats the exact same problem with yours, since its failing
on a
unit test, not a functional test, but it may be a similar type of error.
Try running ‘rake test_units --trace’ to see if you can find a more
useful
error message.