Feature tests pass, unit test does not

This commit is contained in:
Joe Nelson
2014-08-23 18:08:20 -07:00
parent a3a6108d49
commit 036ffa107b
6 changed files with 27 additions and 30 deletions
+6 -5
View File
@@ -8,7 +8,6 @@ import Test.Hspec.Wai.JSON
import SpecHelper
import Network.HTTP.Types
import Dbapi (app)
spec :: Spec
spec = around appWithFixture $ do
@@ -74,7 +73,9 @@ spec = around appWithFixture $ do
it "returns whole range with status 200" $ do
get "/auto_incrementing_pk" `shouldRespondWith` 206
-- describe "Posting new record" $ do
-- context "into a table with auto-incrementing pk" $ do
-- it "does not require pk in the payload" $ do
-- undefined
describe "Posting new record" $ do
context "into a table with auto-incrementing pk" $ do
it "does not require pk in the payload" $ do
post "/auto_incrementing_pk" [json|
{ "non_nullable_string":"not null"} |]
`shouldRespondWith` 200