Do not add WHERE clause if only param is order

Fixes #119
This commit is contained in:
Joe Nelson
2015-01-05 22:37:49 -08:00
parent 591f0eb78d
commit 4c74e54ae1
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -39,6 +39,9 @@ spec = beforeAll (clearTable "items" >> createItems 15)
, matchHeaders = ["Content-Range" <:> "0-1/2"]
}
it "without other constraints" $
get "/items?order=asc.id" `shouldRespondWith` 200
describe "Canonical location" $ do
it "Sets Content-Location with alphabetized params" $
get "/no_pk?b=eq.1&a=eq.1"