packages feed

sydtest-persistent-sqlite 0.2.0.1 → 0.2.0.2

raw patch · 4 files changed

+16/−1 lines, 4 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Test.Syd.Persistent.Sqlite: sqliteMigrationSucceedsSpec :: FilePath -> Migration -> Spec

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.2] - 2022-05-05++### Added++* `sqliteMigrationSucceedsSpec`+ ## [0.2.0.1] - 2022-04-26  ### Added
src/Test/Syd/Persistent/Sqlite.hs view
@@ -10,6 +10,7 @@     runSqlPool,     runSqliteTest,     migrationRunner,+    sqliteMigrationSucceedsSpec,   ) where @@ -65,3 +66,9 @@ -- | A flipped version of 'runSqlPool' to run your tests runSqliteTest :: ConnectionPool -> SqlPersistM a -> IO a runSqliteTest = runPersistentTest++-- | Test that the given migration succeeds, when applied to the current database.+--+-- See 'Test.Syd.Persistent.migrationsSucceedsSpec" for details.+sqliteMigrationSucceedsSpec :: FilePath -> Migration -> Spec+sqliteMigrationSucceedsSpec = migrationsSucceedsSpecHelper connectionPoolSetupFunc
sydtest-persistent-sqlite.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           sydtest-persistent-sqlite-version:        0.2.0.1+version:        0.2.0.2 synopsis:       A persistent-sqlite companion library for sydtest category:       Testing homepage:       https://github.com/NorfairKing/sydtest#readme
test/Test/Syd/Persistent/SqliteSpec.hs view
@@ -9,6 +9,8 @@ spec :: Spec spec =   describe "persistSqliteSpec" $ do+    sqliteMigrationSucceedsSpec "test_resources/migration.sql" migrateExample+     persistSqliteSpec migrateExample $ do       it "can write and read this example person" $ \pool ->         runSqliteTest pool $ do