Skip to content

Instantly share code, notes, and snippets.

@ragaskar
Created July 2, 2011 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ragaskar/1061666 to your computer and use it in GitHub Desktop.
Save ragaskar/1061666 to your computer and use it in GitHub Desktop.
Kill spork when running rake spec (place in lib/tasks)
task :kill_spork do
spork_processes = `ps aux | grep spork | egrep -v grep | awk '{print $2}'`.split("\n")
spork_processes.each do |process|
system("kill #{process}")
end
end
task :spec => [:kill_spork, :cucumber]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment