Skip to content

Instantly share code, notes, and snippets.

@ahawkins
Created August 3, 2010 01:07
Show Gist options
  • Select an option

  • Save ahawkins/505632 to your computer and use it in GitHub Desktop.

Select an option

Save ahawkins/505632 to your computer and use it in GitHub Desktop.
Then /^the jobs are processed$/ do
worker = Resque::Worker.new('*')
worker.work(0)
Resque::Worker.working.map(&:shutdown)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment