Skip to content

Instantly share code, notes, and snippets.

@apalmblad
Created March 9, 2010 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apalmblad/327305 to your computer and use it in GitHub Desktop.
Save apalmblad/327305 to your computer and use it in GitHub Desktop.
Remove db:test:prepare as a prerequistite of test:units, test:functionals, and test:integration, but provide that functional instead at test:prepared:test_type
namespace :test do
%w( units functionals integration).each do |type|
task = Rake::Task["test:#{type}"]
task "prepared:#{type}" => task.prerequisites do
task.execute
end
task.clear_prerequisites
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment