what do rake spec do

$ rake spec --trace
(in /Users/sarah/src/tfr/svn/Book/code/class_app_new_source)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute spec

 

 

1. Don’t run the specs if there are pending migrations in the development database. (db:abort_if_pending_migrations)

 

2. Drop the test database (db:test:purge)

 

3. Load the schema into the test database (db:schema:load in environment “test”)

你可能感兴趣的:(rake)