Sha256: 2936b622daebf553f882be91406738d226e12146e1eff04dfab54f0c01af617c

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

require "rack/test"

module Webrat
  class RackSession
    extend Forwardable

    def_delegators :@session, :get, :post, :put, :delete

    def initialize(session) #:nodoc:
      @session = session
    end

    def response_body
      response.body
    end

    def response_code
      response.status
    end

    def response
      @session.last_response
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
hardbap-webrat-0.5.1 lib/webrat/rack.rb
hardbap-webrat-0.5.2 lib/webrat/rack.rb
winton-sum-0.1.0 vendor/webrat/lib/webrat/rack.rb
winton-sum-0.1.1 vendor/webrat/lib/webrat/rack.rb
sum-0.1.1 vendor/webrat/lib/webrat/rack.rb
webrat-0.5.0 lib/webrat/rack.rb