Skip to content

Instantly share code, notes, and snippets.

@jonkarna
Created May 25, 2011 14:51
Show Gist options
  • Save jonkarna/991112 to your computer and use it in GitHub Desktop.
Save jonkarna/991112 to your computer and use it in GitHub Desktop.
Removes test db creation and purging. I created this so that I could run my tests against a database backup.
Rake::TaskManager.class_eval do
def delete_task(task_name)
@tasks.delete(task_name.to_s)
end
Rake.application.delete_task("db:test:prepare")
Rake.application.delete_task("db:test:purge")
end
namespace :db do
namespace :test do
task :prepare do
end
task :purge do
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment