We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aeee3e commit 3bd3effCopy full SHA for 3bd3eff
servant-server/test/Servant/Server/ErrorSpec.hs
@@ -168,6 +168,10 @@ errorRetrySpec = describe "Handler search"
168
request methodGet "a" [jsonCT, jsonAccept] jsonBody
169
`shouldRespondWith` 200 { matchBody = Just $ encode (4 :: Int) }
170
171
+ it "should not continue when body cannot be decoded" $ do
172
+ request methodPost "a" [jsonCT, jsonAccept] "a string"
173
+ `shouldRespondWith` 400
174
+
175
-- }}}
176
------------------------------------------------------------------------------
177
-- * Error Choice {{{
0 commit comments