Topic: Test database tables are not created when running test rake task

Hi, I am new to ruby on rails and are trying to run some units tests.

I have some functional tests and some unit tests with 4 fixture files.

My problem is that the database tables are not created in my test database.
I can run the db:test:clone and db:test:load rake tasks independently and the db tables get created.
But when running the test rake task I get errors as the db tables are first removed but not created again.

I checked in the test.log file. And I have some entries like this:

Re: Test database tables are not created when running test rake task

try rake db:test:prepare

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)