alphagov/hmrc-manuals-api — pull request #9 by benilovj (2014-07-10 13:43:01+00:00)
Title: Add spec for malformed JSON

The default rails middleware (`ActionDispatch::ParamsParser`) handles malformed
JSON in the way that we need (returning status code 400). The only nuance is
that the rails testing hooks appear to raise exceptions rather than return 400
in this case, making the spec less clear than it could be.