ghc-mod/test/LangSpec.hs
2013-05-20 11:29:44 +09:00

14 lines
335 B
Haskell

module LangSpec where
import Control.Applicative
import Expectation
import Language.Haskell.GhcMod
import Test.Hspec
spec :: Spec
spec = do
describe "listLanguages" $ do
it "lists up language extensions" $ do
exts <- lines <$> listLanguages defaultOptions
exts `shouldContain` "OverloadedStrings"