Sha256: 2d7ccfd4369b5fe7ec539e66262461ea0bd3de3e30ee83895a283adaac6257ec

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
webrat-0.3.1 lib/webrat/rack.rb
webrat-0.3.0 lib/webrat/rack.rb
webrat-0.3.2 lib/webrat/rack.rb
webrat-0.3.3 lib/webrat/rack.rb
webrat-0.3.4 lib/webrat/rack.rb