From 459074b331d1d847af421a5cdf3d323ba4f335c9 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 5 Feb 2021 19:19:26 +0100 Subject: [PATCH] rename test module --- mateamt.cabal | 2 +- test/{MainSpec.hs => AppMainSpec.hs} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename test/{MainSpec.hs => AppMainSpec.hs} (86%) diff --git a/mateamt.cabal b/mateamt.cabal index 42364ff..cfc8cae 100644 --- a/mateamt.cabal +++ b/mateamt.cabal @@ -140,6 +140,6 @@ test-suite spec , postgresql-simple other-modules: TestUtil , Spec - , MainSpec + , AppMainSpec default-language: Haskell2010 build-tool-depends: hspec-discover:hspec-discover diff --git a/test/MainSpec.hs b/test/AppMainSpec.hs similarity index 86% rename from test/MainSpec.hs rename to test/AppMainSpec.hs index 2471d78..61b1114 100644 --- a/test/MainSpec.hs +++ b/test/AppMainSpec.hs @@ -1,9 +1,8 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} -module MainSpec where +module AppMainSpec where import Database.PostgreSQL.Transact -import Database.PostgreSQL.Simple (Only(..)) import Test.Hspec @@ -14,6 +13,7 @@ import Control.Monad.IO.Class (liftIO) import qualified "mateamt" Util as LibUtil import TestUtil +spec :: Spec spec = describeDB (const $ return ()) "Initialize DB" $ itDB "call initialization script" $ do conn <- getConnection