Skip to content

Instantly share code, notes, and snippets.

@abrons
Forked from ragaskar/spec.rake
Created July 5, 2011 18:29
Show Gist options
  • Select an option

  • Save abrons/1065501 to your computer and use it in GitHub Desktop.

Select an option

Save abrons/1065501 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 spor[k] | awk '{print $2}'`.split("\n").map(&:to_i)
spork_processes.each do |pid|
Process.kill "QUIT", pid
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