• Deploying a web app (rake deploy ) • Running an entire test suite (rake test:all ) • Data migrations (rake data_migrations:split_full_names ) • Running recurring tasks (Heroku Scheduler) 9
db:migrate ) • Outputting code stats (rake stats ) • Viewing routes (rake routes ) • Checking app details (rake about ) • So much more (run rake -T to see all tasks for a project) 10
subject { Rake::Task['donors:sync_modified_between'] } before { subject.reenable } it 'triggers the sync job for the donors' do expect(DonorsSyncJob).to receive( :perform_later ).with('2015-09-17', '2015-09-18') subject.invoke('2015-09-17', '2015-09-18') end end end