1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Test that reading an extant file produces a blob with the appropriate path.

This commit is contained in:
Rob Rix 2017-04-05 11:11:09 -04:00
parent 7b6bf4f42b
commit e67832ff78

View File

@ -1,7 +1,13 @@
module Command.Spec where
import Command
import Prologue hiding (readFile)
import Source
import Test.Hspec
spec :: Spec
spec = return ()
spec = parallel $ do
describe "readFile" $ do
it "returns a blob for extant files" $ do
blob <- runCommand (readFile "semantic-diff.cabal")
fmap path blob `shouldBe` Just "semantic-diff.cabal"