Sha256: 51024a18aaa3299b2471590582ef2319e0b8f56815a3758caef6446d81a1fd60

Contents?: true

Size: 433 Bytes

Versions: 11

Compression:

Stored size: 433 Bytes

Contents

require "rack/test"

module Webrat
  class RackAdapter
    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_headers
      response.headers
    end

    def response
      @session.last_response
    end
  end
end

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/webrat-0.7.3/lib/webrat/adapters/rack.rb
webrat-0.7.3 lib/webrat/adapters/rack.rb
jbd-webrat-0.7.2.rails3 lib/webrat/adapters/rack.rb
webrat-0.7.2 lib/webrat/adapters/rack.rb
webrat-0.7.2.beta.2 lib/webrat/adapters/rack.rb
mutle-webrat-0.7.2.beta.1 lib/webrat/adapters/rack.rb
thoughtbot-webrat-0.7.2.pre lib/webrat/adapters/rack.rb
webrat-0.7.2.beta.1 lib/webrat/adapters/rack.rb
honkster-webrat-0.7.1.2 lib/webrat/adapters/rack.rb
honkster-webrat-0.7.1.1 lib/webrat/adapters/rack.rb
webrat-0.7.1 lib/webrat/adapters/rack.rb