#!/usr/local/bin/ruby -Ke
$:.unshift '../../packages/nora/lib'

require '../../packages/nora/ext/web/escape/escape'
$".push 'web/escape'

require '../../packages/nora/ext/web/writebuffer/writebuffer'
$".push 'web/writebuffer'

require "web"
require "testapp"

api = Web::Interface::AUTO.new

app = TestApp.new
app.setup

api.each {|req|
  rsp = app.run(req)
  api.response req,rsp
}

app.teardown
