brushing up tests.

This commit is contained in:
Kazu Yamamoto 2013-03-13 12:48:26 +09:00
parent 85ab14975d
commit 9e54c8c87b
2 changed files with 2 additions and 32 deletions

View File

@ -9,7 +9,7 @@ spec = do
describe "cabalAllDependPackages" $ do
it "extracts dependent packages" $ do
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"]
pkgs `shouldBe` ["Cabal","base","template-haskell"]
describe "cabalBuildInfo" $ do
it "extracts build info" $ do

View File

@ -46,21 +46,7 @@ Executable ghc-mod
GHC-Options: -Wall
Build-Depends: base >= 4.0 && < 5
, Cabal >= 1.10
, containers
, convertible
, directory
, filepath
, ghc
, ghc-paths
, ghc-syb-utils
, hlint >= 1.7.1
, io-choice
, old-time
, process
, regex-posix
, syb
, time
, transformers
, template-haskell
Test-Suite spec
Main-Is: Spec.hs
@ -75,22 +61,6 @@ Test-Suite spec
ListSpec
Build-Depends: base >= 4.0 && < 5
, Cabal >= 1.10
, containers
, convertible
, directory
, filepath
, ghc
, ghc-paths
, ghc-syb-utils
, hlint >= 1.7.1
, io-choice
, old-time
, process
, regex-posix
, syb
, time
, transformers
, hspec
Source-Repository head
Type: git