lib/jets/spec_helpers/request.rb in jets-1.7.1 vs lib/jets/spec_helpers/request.rb in jets-1.7.2

- old
+ new

@@ -39,9 +39,15 @@ json['body'] = Base64.encode64 body json['isBase64Encoded'] = true end + params.query_params.to_a.each do |e| + key, value = e + json['queryStringParameters'] ||= {} + json['queryStringParameters'][key.to_s] = value.to_s + end + json end def multipart_boundary @boundary ||= '-' * 16 + SecureRandom.hex(32) \ No newline at end of file