Skip to content

Commit

Permalink
Added empty RenameTest
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Dec 21, 2011
1 parent fd97eee commit f25451e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
11 changes: 5 additions & 6 deletions persistent-test/PersistentTest.hs
Expand Up @@ -14,7 +14,11 @@
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE CPP #-}
module PersistentTest (main') where
module PersistentTest
( specs
, runConn
, setup
) where

import Test.HUnit hiding (Test)
import Test.Hspec.Monadic (Specs, describe, it, hspecX)
Expand Down Expand Up @@ -250,11 +254,6 @@ instance Arbitrary PersistValue where
#endif


main' :: IO ()
main' = do
runConn setup
hspecX specs

joinGeneric :: PersistBackend b m =>
(SelectOneMany BackendMonad (Author) (EntryGeneric BackendMonad)
-> b m [((Key b (Author), Author),
Expand Down
9 changes: 9 additions & 0 deletions persistent-test/RenameTest.hs
@@ -0,0 +1,9 @@
module RenameTest
( renameSpecs
) where

import Test.Hspec.Monadic

renameSpecs :: Specs
renameSpecs = do
return ()
4 changes: 3 additions & 1 deletion persistent-test/persistent-test.cabal
Expand Up @@ -20,7 +20,8 @@ library
ghc-options: -O0
extra-libraries: sqlite3
exposed-modules: PersistentTest
Database.Persist.Base
RenameTest
other-modules: Database.Persist.Base
Database.Persist.EntityDef
Database.Persist.GenericSql
Database.Persist.GenericSql.Raw
Expand Down Expand Up @@ -71,6 +72,7 @@ test-suite test

build-depends: base >= 4 && < 5
, persistent-test
, hspec

-- these are mutually exclusive options
-- cpp-options: -DWITH_POSTGRESQL
Expand Down
8 changes: 6 additions & 2 deletions persistent-test/test/main.hs
@@ -1,4 +1,8 @@
import PersistentTest (main')
import PersistentTest
import RenameTest
import Test.Hspec.Monadic (hspecX)

main :: IO ()
main = main'
main = do
runConn setup
hspecX $ specs >> renameSpecs

0 comments on commit f25451e

Please sign in to comment.