Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Commit

Permalink
Fix loadSymbolDb test when using new-build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielG committed Oct 26, 2018
1 parent 954f5bc commit b72db57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/FindSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ module FindSpec where
import GhcMod.Exe.Find
import Test.Hspec
import TestUtils
import Dir

spec :: Spec
spec = do
describe "db <- loadSymbolDb" $ do
it "lookupSymbol' db \"head\" contains at least `Data.List'" $ do
db <- runD $ loadSymbolDb
lookupSym "head" db `shouldContain` [ModuleString "Data.List"]
withDirectory_ "test/data/ghc-mod-check" $ do
db <- runD $ loadSymbolDb
lookupSym "head" db `shouldContain` [ModuleString "Data.List"]

0 comments on commit b72db57

Please sign in to comment.