fixes spec for changed error message from updated aeson library

This commit is contained in:
Richard Allaway
2015-08-17 11:10:15 -04:00
parent 4e77492797
commit 4cf51b7005
+1 -1
View File
@@ -89,7 +89,7 @@ spec = afterAll_ resetDb $ around withApp $ do
it "fails with 400 and error" $
post "/simple_pk" "}{ x = 2"
`shouldRespondWith` ResponseMatcher {
matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: satisfy"} |]
matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: not a valid json value"} |]
, matchStatus = 400
, matchHeaders = []
}