webrat/spec/integration/rack/rack_app.rb
2009-05-11 00:12:27 -04:00

17 lines
239 B
Ruby

require "rubygems"
require "sinatra/base"
class RackApp < Sinatra::Default
get "/" do
"Hello World"
end
get "/redirect_absolute_url" do
redirect URI.join(request.url, "foo").to_s
end
get "/foo" do
"spam"
end
end