Skip to content

Instantly share code, notes, and snippets.

@textarcana
Created August 14, 2009 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save textarcana/168047 to your computer and use it in GitHub Desktop.
Save textarcana/168047 to your computer and use it in GitHub Desktop.
require 'test/unit'
class NetworkSanityTests < Test::Unit::TestCase
def test_www_is_up
response = Net::HTTP.get_response URI.parse('http://onemorebug.com')
assert_equal 200, response.code.to_i, 'Bad response from server.'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment