module Rake class Task def remove_prerequisite(task_name) name = task_name.to_s @prerequisites.delete(name) end end end Rake::Task['test:units'].remove_prerequisite('db:test:prepare') Rake::Task['test:functionals'].remove_prerequisite('db:test:prepare')
You need to create an account or log in to post comments to this site.
(from the DatabaseLessApplication recipe in the RailsRecipes book. That recipe works only in Rails 1.0, not in 1.1)