From 9bb554ab9450716016c2b23a73e33feb16836551 Mon Sep 17 00:00:00 2001 From: wesgarrison Date: Wed, 16 May 2012 00:30:41 -0500 Subject: [PATCH] Prevent rake 0.9.2.2 from failing when clearing default task rake 0.9.2 would (apparently) wouldn't fail if you tried to clear a task that wasn't defined. This closes issue #179 where trying to run the db:seed rake task would fail with the error Don't know how to build task 'default' Tested on ruby-1.9.2-p290 and ruby-1.9.3-p125 only, rake 0.9.2.2 --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 37764344d..8f139860e 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,7 @@ require 'bundler' Errbit::Application.load_tasks -Rake::Task[:default].clear +Rake::Task[:default].clear if Rake::Task.task_defined?(:default) namespace :spec do desc "Preparing test env"