Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Sledgehammer approach for ^Cing rake test runs
if Rails.env.test?
if `ps -wwp #{Process.ppid}` =~ /ruby/
trap("INT") {
Process.kill("KILL", Process.ppid)
Process.kill("KILL", Process.pid)
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment