From 5a1ae934b9091345088db851301966eee9e7bf94 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Sun, 15 Feb 2015 16:14:25 -0800 Subject: [PATCH] Put array open bracket nearer to the json --- test/Feature/QuerySpec.hs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/Feature/QuerySpec.hs b/test/Feature/QuerySpec.hs index c1c630ac7..625a07c14 100644 --- a/test/Feature/QuerySpec.hs +++ b/test/Feature/QuerySpec.hs @@ -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=a.asc" `shouldRespondWith` [json|[ - {"a":"lick","b":"Fun"},{"a":"trick","b":"funky"}]|] - 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=a.asc" `shouldRespondWith` [json|[ - {"a":"BARD","b":"FOOD"}]|] + 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=a.asc" `shouldRespondWith` [json| + [{"a":"barb","b":"foo"},{"a":"trick","b":"funky"}]|] + 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=a.asc" `shouldRespondWith` [json|[ - {"a":"lick","b":"Fun"},{"a":"trick","b":"funky"}]|] - get "/no_pk?a=ilike.*AR*&order=a.asc" `shouldRespondWith` [json|[ - {"a":"BARD","b":"FOOD"},{"a":"barb","b":"foo"}]|] + 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=a.asc" `shouldRespondWith` [json| + [{"a":"BARD","b":"FOOD"},{"a":"barb","b":"foo"}]|] describe "ordering response" $ do it "by a column asc" $