Refactoring Cabal stuff.

This commit is contained in:
Kazu Yamamoto
2013-03-01 15:25:43 +09:00
parent 561bb38900
commit 7761691795
3 changed files with 36 additions and 17 deletions

View File

@@ -6,9 +6,9 @@ import CabalApi
spec :: Spec
spec = do
describe "cabalDependPackages" $ do
describe "cabalAllDependPackages" $ do
it "extracts dependent packages" $ do
pkgs <- cabalDependPackages <$> cabalParseFile "test/data/cabalapi.cabal"
pkgs <- cabalAllDependPackages <$> cabalParseFile "test/data/cabalapi.cabal"
pkgs `shouldBe` ["Cabal","base","containers","convertible","directory","filepath","ghc","ghc-paths","ghc-syb-utils","hlint","hspec","io-choice","old-time","process","regex-posix","syb","time","transformers"]
describe "cabalBuildInfo" $ do