[rspec-users] Cucumber: Why rake features needs to call db:test:prepare?

Mark Wilden mark at mwilden.com
Tue Nov 4 18:59:25 EST 2008

On Tue, Nov 4, 2008 at 3:25 PM, aslak hellesoy <aslak.hellesoy at gmail.com>wrote:

> db:test:prepare is a shortcut for running all the migrations from the
> first to the last.

Not quite. db:test:prepare just copies the schema from the development
database to the test database. It aborts if there are any pending
migrations, but it doesn't actually run any. That's why any data population
in a migration does not get done in the test db.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081104/39f1fe4d/attachment.html>

More information about the rspec-users mailing list