Require rack/test in rack session

This commit is contained in:
Simon Rozet 2009-06-24 15:14:08 +02:00
parent 0a3b979772
commit 92ec1c3d92

View File

@ -1,6 +1,7 @@
require "rack/test"
module Webrat
class RackSession < Session
def initialize(rack_test_session) #:nodoc:
super()
@rack_test_session = rack_test_session
@ -27,6 +28,5 @@ module Webrat
env = headers.merge(:params => data, :method => http_method.to_s.upcase)
@rack_test_session.request(url, env)
end
end
end