Method: Net::HTTPExt::Etest#test_w_google

Defined in:
lib/vex/base/net/http_ext.rb

#test_w_googleObject



195
196
197
198
199
200
201
202
203
204
205
# File 'lib/vex/base/net/http_ext.rb', line 195

def test_w_google
  return unless Socket.online?

  assert Net.exists?("http://www.google.de")
  assert Net.exist?("http://www.google.de")
  
  google = Net.get("http://www.google.de")
  assert google =~ /<title>Google/
  assert google.headers["Content-Type"] =~ /text\/html/
  assert google.headers.content_type =~ /text\/html/
end