Test is.null matcher

This commit is contained in:
Joe Nelson
2015-03-15 15:20:31 -07:00
parent f4e0c12cba
commit f7ff08edf7
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -34,6 +34,10 @@ spec =
, matchHeaders = ["Content-Range" <:> "0-2/3"]
}
it "matches nulls" $
get "/no_pk?a=is.null" `shouldRespondWith`
[json| [{"a": null, "b": null}] |]
it "matches with like" $ do
get "/simple_pk?k=like.*yx" `shouldRespondWith`
"[{\"k\":\"xyyx\",\"extra\":\"u\"}]"