Commit 9bb554ab9450716016c2b23a73e33feb16836551

Authored by wesgarrison
1 parent e2869720
Exists in master and in 1 other branch production

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
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
Rakefile
... ... @@ -7,7 +7,7 @@ require 'bundler'
7 7  
8 8 Errbit::Application.load_tasks
9 9  
10   -Rake::Task[:default].clear
  10 +Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
11 11  
12 12 namespace :spec do
13 13 desc "Preparing test env"
... ...