Update order by params to new style introduced from master

This commit is contained in:
Joe Nelson
2015-02-15 16:13:06 -08:00
parent eea1bc0cac
commit 58f18181c2
+6 -6
View File
@@ -43,18 +43,18 @@ spec = beforeAll testSet . afterAll_ (clearTable "items") . around withApp $ do
}
it "matches with like" $ do
get "/no_pk?a=like.*ick&order=asc.a" `shouldRespondWith` [json|[
get "/no_pk?a=like.*ick&order=a.asc" `shouldRespondWith` [json|[
{"a":"lick","b":"Fun"},{"a":"trick","b":"funky"}]|]
get "/no_pk?b=like.f*&order=asc.a" `shouldRespondWith` [json|[
get "/no_pk?b=like.f*&order=a.asc" `shouldRespondWith` [json|[
{"a":"barb","b":"foo"},{"a":"trick","b":"funky"}]|]
get "/no_pk?a=like.*AR*&order=asc.a" `shouldRespondWith` [json|[
get "/no_pk?a=like.*AR*&order=a.asc" `shouldRespondWith` [json|[
{"a":"BARD","b":"FOOD"}]|]
it "matches with ilike" $ do
get "/no_pk?b=ilike.fun*&order=asc.a" `shouldRespondWith` [json|[
get "/no_pk?b=ilike.fun*&order=a.asc" `shouldRespondWith` [json|[
{"a":"lick","b":"Fun"},{"a":"trick","b":"funky"}]|]
get "/no_pk?a=ilike.*AR*&order=asc.a" `shouldRespondWith` [json|[
{"a":"barb","b":"foo"},{"a":"BARD","b":"FOOD"}]|]
get "/no_pk?a=ilike.*AR*&order=a.asc" `shouldRespondWith` [json|[
{"a":"BARD","b":"FOOD"},{"a":"barb","b":"foo"}]|]
describe "ordering response" $ do
it "by a column asc" $