diff --git a/test/Test.hs b/test/Test.hs index bc65d07..1fccd1a 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -65,6 +65,10 @@ share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistUpperCase| follower PersonId followed PersonId deriving Eq Show + + CcList + names [String] + Frontcover number Int title String @@ -1095,6 +1099,16 @@ main = do return p liftIO $ ret `shouldBe` [ Entity p2k p2 ] + + describe "list fields" $ do + -- + it "can update list fields" $ + run $ do + cclist <- insert $ CcList [] + update $ \p -> do + set p [ CcListNames =. val ["fred"]] + where_ (p ^. CcListId ==. val cclist) + describe "inserts by select" $ do it "IN works for insertSelect" $ run $ do