Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 7696adf

Browse files
committed
Fix a spec.
1 parent 55c349b commit 7696adf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

semantic/test/Semantic/IO/Spec.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Semantic.IO.Spec (spec) where
99
import Prelude hiding (readFile)
1010

1111
import Analysis.File as File
12+
import Analysis.Reference as Ref
1213
import Data.Blob as Blob
1314
import Data.Handle
1415
import SpecHelpers
@@ -30,11 +31,11 @@ spec = do
3031

3132
it "returns a blob for extant files" $ do
3233
let path = Fixture.absRelFile "test/fixtures/cli/diff.json"
33-
Just blob <- readBlobFromFile (File path lowerBound Unknown)
34+
Just blob <- readBlobFromFile (File (Reference path lowerBound) Unknown)
3435
blobFilePath blob `shouldBe` Path.toString path
3536

3637
it "throws for absent files" $ do
37-
readBlobFromFile (File (Path.absRel "/dev/doesnotexist") lowerBound Unknown) `shouldThrow` anyIOException
38+
readBlobFromFile (File (Reference (Path.absRel "/dev/doesnotexist") lowerBound) Unknown) `shouldThrow` anyIOException
3839

3940
describe "readBlobPairsFromHandle" $ do
4041
let a = Blob.fromSource (Path.relFile "method.rb") Ruby "def foo; end"

0 commit comments

Comments
 (0)