Return [] rather than nothing on no results

Fixes #70
This commit is contained in:
Joe Nelson
2014-10-14 11:23:26 -07:00
parent 17ada69411
commit 21e4e583ec
5 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ spec = around appWithFixture $ do
it "Sets Content-Location with alphabetized params" $
get "/no_pk?b=eq.1&a=eq.1"
`shouldRespondWith` ResponseMatcher {
matchBody = Nothing
, matchStatus = 204
matchBody = Just "[]"
, matchStatus = 200
, matchHeaders = ["Content-Location" <:> "/no_pk?a=eq.1&b=eq.1"]
}