# File spec/spec_helper.rb, line 69 def do_GET(req, res) res['Content-type'] = 'text/html' if req.path == '/foo' res.body = "<a href=\"/\">a</a>\n" else res.body = "<a href=\"/foo\">b</a>\n" end end