Rakefile in simple_captcha2-0.3.0 vs Rakefile in simple_captcha2-0.3.1
- old
+ new
@@ -31,9 +31,18 @@
desc 'destroy dummy Rails app under test/dummy'
task :destroy do
FileUtils.rm_rf "test/dummy" if File.exists?("test/dummy")
end
+ desc 'redo'
+ task :redo do
+ sh 'rake dummy:destroy'
+ sh 'rake dummy:setup'
+ sh 'rake app:db:migrate'
+ sh 'rake app:db:migrate RAILS_ENV=test'
+ end
+
+
end