Not sure if this is the correct way to go about testing rake tasks but it works pretty well. Hit up the comments if there is a better way. So here is an example rake task I want to test: [lib/tasks/app.rake] namespace :app do namespace :options do desc "refreshes option values" task :refresh => :environment do options = YAML.load_file("config/options.yml") options.each do |attrs| option = Option.f