2013-02-12 05:06:22 +00:00
|
|
|
module ListSpec where
|
|
|
|
|
|
|
|
import Control.Applicative
|
2013-05-20 02:29:44 +00:00
|
|
|
import Language.Haskell.GhcMod
|
|
|
|
import Test.Hspec
|
2013-02-12 05:06:22 +00:00
|
|
|
|
|
|
|
spec :: Spec
|
|
|
|
spec = do
|
|
|
|
describe "listModules" $ do
|
|
|
|
it "lists up module names" $ do
|
|
|
|
modules <- lines <$> listModules defaultOptions
|
2013-09-03 02:44:59 +00:00
|
|
|
modules `shouldContain` ["Data.Map"]
|