Use table defaults for empty object insert

Fixes #616
This commit is contained in:
Joe Nelson
2016-06-02 08:40:24 -07:00
parent c0c1a260ba
commit 5e3d9442af
4 changed files with 22 additions and 9 deletions
+8
View File
@@ -189,6 +189,14 @@ spec = do
, matchHeaders = ["Location" <:> location]
}
context "empty object" $
it "successfully populates table with all-default columns" $
post "/items" "{}" `shouldRespondWith` ResponseMatcher {
matchBody = Just ""
, matchStatus = 201
, matchHeaders = []
}
describe "CSV insert" $ do
context "disparate csv types" $
+1 -1
View File
@@ -204,7 +204,7 @@ INSERT INTO items VALUES (15);
-- Name: items_id_seq; Type: SEQUENCE SET; Schema: test; Owner: -
--
SELECT pg_catalog.setval('items_id_seq', 1, true);
SELECT pg_catalog.setval('items_id_seq', 15, true);
--