Skip to content

Commit

Permalink
Prevent rake 0.9.2.2 from failing when clearing default task
Browse files Browse the repository at this point in the history
rake 0.9.2 would (apparently) wouldn't fail if you tried to clear
a task that wasn't defined.  

This closes issue errbit#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
  • Loading branch information
wesgarrison committed May 16, 2012
1 parent e286972 commit 9bb554a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9bb554a

Please sign in to comment.