[rspec-users] spec:models depends on development db:migration
keith at dancingtext.com
Thu Oct 18 10:51:37 EDT 2007
For those interested ....
rake spec:models seems to clone the test database from development. If
your dev db is empty, the models task fails mysteriously.
Anyway, to make sure your dev db is at the current migration version, I
added this dependency in lib/tasks
task 'spec:models' => 'db:migrate'
Now the dev db is migrated up with each test pass.
More information about the rspec-users