Test is not a module (TypeError)

Hi,

We have a project with a db table ‘test’ and a corresponding model Test.
When we run rake to invoke our tests, rake fails with the following
error:
/usr/lib/ruby/1.8/test/unit/assertionfailederror.rb:5: Test is not a
module (TypeError)

We believe this is caused by some namespace conflict between our model
named Test and rake’s own internals. If we rename our Test class, this
problem disappears; however, Test really is the right name in this
circumstance.

Can anyone suggest a possible method to resolve this issue? This can be
recreated by taking any rails project and creating a model called Test.
Attempting to run rake will yield the error above.

-Kent

I get a same problem .

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs