[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 20:12:00 EST 2008


> i run "rake spec --trace"

That's not running anything twice, I think. "Invoke" is printed when the
task is called, then the tasks it depends on are invoked, then the task is
executed. The environment task is invoked several times, but it's only
actually executed once.

///

On Thu, Nov 6, 2008 at 4:35 PM, Greg Hauptmann <
greg.hauptmann.ruby at gmail.com> wrote:

>
> On 11/6/08, Greg Hauptmann <greg.hauptmann.ruby at gmail.com> wrote:
> > anyone able to explain logic behind "rake spec" startup? i.e. the
> > below steps & why things occur when they do
> >
> > Macintosh-2:myequity greg$ rake spec --trace
> > (in /Users/greg/source/myequity)
> > ** 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
> > <cut>
> >
> > thanks
> >
>
> --
> Sent from my mobile device
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081106/df492bf0/attachment-0001.html>


More information about the rspec-users mailing list