Sha256: ae745658f81175b18c966a664d171a01f25df81cc963d6cb2aa861046d7d0ac6

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require 'webrat'

class CGIMethods #:nodoc:
  def self.parse_query_parameters(params)
    hash = {}
    params.split('&').each do |p|
      pair = p.split('=')
      hash[pair[0]] = pair[1]
    end
    hash
  end
end

module Webrat
  class RackSession < Session #:nodoc:
    def response_body
      @response.body
    end

    def response_code
      @response.status
    end
  end
end

Webrat.configuration.mode = :rack

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
aslakhellesoy-webrat-0.3.2.1 lib/webrat/rack.rb
benschwarz-webrat-0.3.2.1 lib/webrat/rack.rb
brynary-webrat-0.3.2.1 lib/webrat/rack.rb
brynary-webrat-0.3.2.2 lib/webrat/rack.rb
flazz-webrat-0.3.2.1 lib/webrat/rack.rb