{-# LANGUAGE OverloadedStrings #-} module ParserSpec where import Parser import Protolude import Test.Hspec spec :: Spec spec = describe "Parser" $ do it "can parse example.yaml" $ do config <- loadAndParse "example/example.yaml" config `shouldBe` [ Config ["src"] ["**/*.hs"] Nothing (Just ["stack build"]) (Just [ (RunConfig (Just "code") "stack exec" (Just [("HOST", "localhost"), ("PORT", "1234")]))]) , Config ["client"] ["**/*.elm"] (Just ["Api.elm"]) (Just ["elm-make"]) Nothing]