I am sending mocks for HTTP. There are also two commits switching using localhost for ICMP tests and localhost ssh port for TCP tests. I am not sure if you like those.
But the HTTP runs just fine now.
Adding HTTP mock with Fakeweb GEM
Using localhost for ICMP ping tests
Using localhost/ssh for TCP ping tests
I know if there is a firewall throwing out ICMP pings or theres no SSH port open locally the test fails. But its very similar to the situation when www.ruby-lang.org does not work or internet connection is broken.
Truth is the SSH wont succeed on Windows. Maybe I could write a mockup for TCP (very simple listening daemon). But not sure about ICMP. What you think?
Merged, thanks! Let me double check windows before I have you worry about more mockups.
I wanted to ask if are you going to release a new version of gem with the new unit tests in near future. If not I need to repack net-ping in Fedora as a standard Ruby library. But I would rather use my original approach as rubygem. I got it prepared and only waiting ;-)
I'll test them on my windows box tonight. If they pass there, I'll push it out tonight.
Ok, got a couple things to work out on Vista and later. Almost there. Should have something out soon.