ghc-mod/test/ListSpec.hs

15 lines
315 B
Haskell
Raw Normal View History

2013-02-12 05:06:22 +00:00
module ListSpec where
import Control.Applicative
import Test.Hspec
import Expectation
import List
import Types
spec :: Spec
spec = do
describe "listModules" $ do
it "lists up module names" $ do
modules <- lines <$> listModules defaultOptions
modules `shouldContain` "Data.Map"