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
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
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.
rake db:test:clone - Recreate the test database from the current environment's database schema.
Once you ran that, there is no reason for the database to migrate on each test