class RefreshWithEmptyUrl

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case.rb, line 470
def do_GET(req, res)
  res['Content-Type'] = "text/html"
  @@count += 1
  if @@count > 1
    res['Refresh'] = "0; url=http://localhost/index.html";
  else
    res['Refresh'] = "0; url=";
  end
end