cyberdelia/fernet-rack — pull request #3 by deafbybeheading (2014-08-12 01:00:25+00:00)
Title: Encrypt responses in addition to decrypting requests

Currently, fernet-rack only decrypts Fernet-encoded requests; it does not do anything about responses. This extends the mangling to include responses as well.

Additionally, it fixes some test issues: CONTENT_TYPE must be passed to `Rack::MockRequest#get` as a String key, and the minitest assertion format is `assert_equal expected, actual` (the juxtaposed variant also works, of course, but leads to confusing error messages).