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:
parent
7b6bf4f42b
commit
e67832ff78
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user