Created
May 25, 2011 14:51
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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