1 import Test
.Cabal
.Prelude
4 cwd
<- testCurrentDir
<$> getTestEnv
6 cabalWithStdin
"init" ["-i", "-p", "app"]
7 "2\n\n1\n\n10\n\n\n\n\n\n\n\n\n\n"
11 assertFileDoesContain
(cwd
</> "app.cabal") "1.24"
12 assertFileDoesContain
(cwd
</> "app.cabal") "BSD3"
13 assertFileDoesContain
(cwd
</> "app.cabal") "Simple"
14 assertFileDoesNotContain
(cwd
</> "app.cabal") "^>="
15 assertFileDoesContain
(cwd
</> "app/Main.hs") "This should remain as is!"
16 assertOutputContains
"Linking" buildOut