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

14 lines
319 B
Haskell

module FlagSpec where
import Control.Applicative
import Expectation
import Language.Haskell.GhcMod
import Test.Hspec
spec :: Spec
spec = do
describe "listFlags" $ do
it "lists up GHC flags" $ do
flags <- lines <$> listFlags defaultOptions
flags `shouldContain` "-fno-warn-orphans"