Thoughtbot extracts most thing into a testable class, but still specs the task.  This is a good article if you haven't seen it: http://robots.thoughtbot.com/test-rake-tasks-like-a-boss