In the lastest release, 0.9.1: * Set sensible defaults on Default for test env  http://github.com/sinatra/sinatra/commit/5a33a9586f6d3aa959ee7b3f4f7f0831476dcaa5 * Set :environment to :test in TestHarness http://github.com/sinatra/sinatra/commit/9af37724e0fa5413c9a089024526ace6f82b7ab9 * Set :environment to :test when Sinatra::Test is included http://github.com/sinatra/sinatra/commit/93b19a34927a21880523d3301b51d1dc2aad6538  Only Sinatra::Default provides special options for testing. If you subclass Sinatra::Base, you'll have to set them yourself. foo
… field and another field, as can be the case in Rails 2.3's checkbox view, webrat now locates the non-hidden field.
What's going on when the app redirects to an absolute URL? * Sinatra relies on Rack::MockSession which sets SERVER_NAME to "example.org"  on request it makes. However, Webrat expects it to be "www.example.com" * In MyClassyApp, the redirect URL is made out of Rack::Request#url  which uses SERVER_NAME, which is set to "example.org" by Rack::MockSession. As a result, Webrat see it as an external redirect and don't follow it. NOTE: * SERVER_NAME is stricly equivalent to HTTP_HOST  * This could have been fixed in Webrat::Session too. I'am not sure that it won't affect other frameworks so I left it intact. def request_page(url, http_method, data) #:nodoc: h = headers h['HTTP_REFERER'] = @current_url if @current_url + h['HTTP_HOST'] = 'www.example.com';  http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/mock.rb#L79  http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/request.rb#L201  http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/request.rb#L72
…atterson) [#176 state:resolved]
…s with selenium
…lenium appserver stop