[rspec-users] anyone able to explain logic behind "rake spec" startup (e.g. db:test:prepare => abort_if_pending_migration => invoke environment => etc etc)

Mark Wilden mark at mwilden.com
Thu Nov 6 10:36:41 EST 2008


On Thu, Nov 6, 2008 at 4:01 AM, Hongli Lai <hongli at plan99.net> wrote:

> <cut>
>>
>
> 'spec' depends on 'db:test:prepare'. 'db:test:prepare' runs any pending
> migrations on your development database, and copies the schema structure to
> the test database. This is to keep the development database's structure and
> the test database's structure in sync.
>
> db:test:prepare does not run migrations. It simply checks whether there are
any pending migrations and aborts if there are.

///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081106/9f2ff66f/attachment.html>


More information about the rspec-users mailing list