Rake db:test:beware

Ruby on Rails Cucumber testing

Thought Id blog something Ive noticed today, was unaware that:

rake db:test:prepare

Uses the Schema.rb file to rebuild the test database, so if you have manually changed your database then you are not creating a true copy of your database for test.

So I guess never stray from using migrations!

One thought on “Rake db:test:beware

  1. That’s the thing about best practises, they sometimes shield you from things you didn’t even know about!!

Leave a Reply

Your email address will not be published. Required fields are marked *