Skip to content

Instantly share code, notes, and snippets.

@jonasmaturana
Created August 8, 2012 12:07
Show Gist options
  • Save jonasmaturana/3294638 to your computer and use it in GitHub Desktop.
Save jonasmaturana/3294638 to your computer and use it in GitHub Desktop.
Kill test server at exit
at_exit do
require 'net/http'
Net::HTTP.get(URI.parse("http://localhost:34777/kill"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment