ghc-mod/test/BrowseSpec.hs
2013-02-12 14:18:19 +09:00

15 lines
344 B
Haskell

module BrowseSpec where
import Control.Applicative
import Test.Hspec
import Browse
import Expectation
import Types
spec :: Spec
spec = do
describe "browseModule" $ do
it "lists up symbols in the module" $ do
syms <- lines <$> browseModule defaultOptions "Data.Map"
syms `shouldContain` "differenceWithKey"