RE: Overriding rake tasks


#1

I have an entry on my blog, with some code, on how to remove things you
don’t want from the Rake processing:

http://blog.craz8.com/articles/2005/10/25/rails-application-testing-in-d
amage-control

In my case, I didn’t want to dump the Development database before
loading the Test database, since the machine this is running on has no
Development database. To make this happen, I wrote the code to prune
out the tasks that dump the Development database.


#2

I found that in my searching, but wasn’t able to figure out how to do
what I want. Honestly, I’m not even sure exactly what I need to do.
I just want to implement the solution in that ticket I linked to
earlier…which I think involves dropping the DB and reloading the
schema before each test is run. I’m trying to figure out how I can
override/extend/modify the rake tasks in order to do that.

Pat