Add test for failing 400
This commit is contained in:
parent
1aeee3ef94
commit
3bd3eff488
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ errorRetrySpec = describe "Handler search"
|
||||||
request methodGet "a" [jsonCT, jsonAccept] jsonBody
|
request methodGet "a" [jsonCT, jsonAccept] jsonBody
|
||||||
`shouldRespondWith` 200 { matchBody = Just $ encode (4 :: Int) }
|
`shouldRespondWith` 200 { matchBody = Just $ encode (4 :: Int) }
|
||||||
|
|
||||||
|
it "should not continue when body cannot be decoded" $ do
|
||||||
|
request methodPost "a" [jsonCT, jsonAccept] "a string"
|
||||||
|
`shouldRespondWith` 400
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
-- * Error Choice {{{
|
-- * Error Choice {{{
|
||||||
|
|
Loading…
Reference in a new issue