# File lib/rack/mock.rb, line 118 def initialize(status, headers, body, errors=StringIO.new("")) @status = status.to_i @original_headers = headers @headers = Rack::Utils::HeaderHash.new headers.each { |field, values| @headers[field] = values @headers[field] = "" if values.empty? } @body = "" body.each { |part| @body << part } @errors = errors.string end