Created
August 14, 2009 19:35
-
-
Save textarcana/168047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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