ghc-mod/test/ListSpec.hs
2013-09-03 11:44:59 +09:00

13 lines
304 B
Haskell

module ListSpec where
import Control.Applicative
import Language.Haskell.GhcMod
import Test.Hspec
spec :: Spec
spec = do
describe "listModules" $ do
it "lists up module names" $ do
modules <- lines <$> listModules defaultOptions
modules `shouldContain` ["Data.Map"]