Skip to content

Instantly share code, notes, and snippets.

@darkhelmet
Created June 8, 2012 21:02
Show Gist options
  • Save darkhelmet/2898104 to your computer and use it in GitHub Desktop.
Save darkhelmet/2898104 to your computer and use it in GitHub Desktop.
Make tests run faster
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