Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / Init / init-legacy.test.hs
blobe315315742828e148f3cf90e483682449044ee07
1 import Test.Cabal.Prelude
3 main = cabalTest $ do
4 cwd <- fmap testCurrentDir getTestEnv
6 buildOut <- do
7 cabal "init" ["-n", "--exe", "-p", "app", "--application-dir=app", "--main-is=Main.hs", "--cabal-version=1.24"]
8 setup "configure" []
9 setup' "build" ["app"]
11 assertFileDoesContain (cwd </> "app.cabal") "1.24"
12 assertFileDoesContain (cwd </> "app.cabal") "Simple"
13 assertFileDoesNotContain (cwd </> "app.cabal") "^>="
14 assertFileDoesContain (cwd </> "app/Main.hs") "This should remain as is!"
15 assertOutputContains "Linking" buildOut