Skip to content

Commit

Permalink
Require rack/test in rack session
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jun 24, 2009
1 parent 0a3b979 commit 92ec1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/webrat/rack.rb
@@ -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
Expand All @@ -27,6 +28,5 @@ def process_request(http_method, url, data = {}, headers = {})
env = headers.merge(:params => data, :method => http_method.to_s.upcase)
@rack_test_session.request(url, env)
end

end
end

0 comments on commit 92ec1c3

Please sign in to comment.