Just came across the same problem. You can get around it by modding/
patching 'ssl_required?' in 'compile_support.rb' of prawnto. The
server protocol variable needs a nil check.
def ssl_request?
@controller.request.env['SERVER_PROTOCOL'].try(:downcase) ==
"https"
end
Alternatively you could try stubbing out ssl_request? in your test
Steve
On May 28, 12:32 pm, David Siñuela Pastor (Siu) <siu.