Created
March 9, 2010 23:55
-
-
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
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
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