Put array open bracket nearer to the json

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