I did rake test:prepare and clone the db. Then when I do spec spec/controllers/file, it migrates the db every single time.
Is that supposed to do that? I thought it was only supposed to migrate the dbs once.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No it shouldn’t do that. I think that you’d be good by just cloning the database (rake db:test:clone) and running the tests.
Once you ran that, there is no reason for the database to migrate on each test