Created
June 8, 2012 21:02
-
-
Save darkhelmet/2898104 to your computer and use it in GitHub Desktop.
Make tests run faster
This file contains hidden or 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 replace_task(old_task, new_task) | |
@tasks[old_task] = @tasks[new_task] | |
end | |
end | |
desc 'Make tests run faster' | |
task :quickly do | |
%w(db:test:load db:test:purge).each do |task| | |
Rake.application.replace_task(task, 'quickly:nothing') | |
end | |
end | |
namespace :quickly do | |
task :nothing do | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment