Merge branch 'master' of git://github.com/aslakhellesoy/webrat into aslakhellesoy/master

This commit is contained in:
Bryan Helmkamp 2008-10-14 16:17:31 -04:00
commit 792f178002
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
require 'webrat'
module Webrat
class RackSession < Session
def response_body
@response.body
end
def response_code
@response.status
end
end
end

View File

@ -0,0 +1,13 @@
require 'webrat/rack/rack_session'
require 'sinatra'
require 'sinatra/test/methods'
module Webrat
class SinatraSession < RackSession
include Sinatra::Test::Methods
def get(*args)
get_it(*args)
end
end
end