ghc-mod/test/FlagSpec.hs

14 lines
314 B
Haskell
Raw Normal View History

2013-02-12 05:12:15 +00:00
module FlagSpec where
import Control.Applicative
2013-05-20 02:29:44 +00:00
import Language.Haskell.GhcMod
import Test.Hspec
import TestUtils
2013-02-12 05:12:15 +00:00
spec :: Spec
spec = do
describe "flags" $ do
it "contains at least `-fno-warn-orphans'" $ do
f <- runD $ lines <$> flags
f `shouldContain` ["-fno-warn-orphans"]