@@ -145,8 +145,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
145145 -- license
146146 , " 3"
147147 -- author
148+ , " git username"
148149 , " Foobar"
149150 -- email
151+ , " git email"
150152151153 -- homepage
152154 , " qux.com"
@@ -249,8 +251,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
249251 -- license
250252 , " 3"
251253 -- author
254+ , " git username"
252255 , " Foobar"
253256 -- email
257+ , " git email"
254258255259 -- homepage
256260 , " qux.com"
@@ -338,8 +342,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
338342 -- license
339343 , " 3"
340344 -- author
345+ , " git username"
341346 , " Foobar"
342347 -- email
348+ , " git email"
343349344350 -- homepage
345351 , " qux.com"
@@ -414,8 +420,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
414420 -- license
415421 , " 3"
416422 -- author
423+ , " git username"
417424 , " Foobar"
418425 -- email
426+ , " git email"
419427420428 -- homepage
421429 , " qux.com"
@@ -504,8 +512,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
504512 -- license
505513 , " 3"
506514 -- author
515+ , " git username"
507516 , " Foobar"
508517 -- email
518+ , " git email"
509519510520 -- homepage
511521 , " qux.com"
@@ -579,8 +589,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
579589 -- license
580590 , " 3"
581591 -- author
592+ , " git username"
582593 , " Foobar"
583594 -- email
595+ , " git email"
584596585597 -- homepage
586598 , " qux.com"
@@ -660,8 +672,10 @@ createProjectTest pkgIx srcDb = testGroup "createProject tests"
660672 -- license
661673 , " 3"
662674 -- author
675+ , " git username"
663676 , " Foobar"
664677 -- email
678+ , " git email"
665679666680 -- homepage
667681 , " qux.com"
@@ -728,7 +742,9 @@ fileCreatorTests pkgIx srcDb _pkgName = testGroup "generators"
728742 , " y" -- "yes to prompt internal to package name"
729743 , " 0.2.0.1" -- package version
730744 , " 2" -- pick the second license in the list
745+ , " git username" -- name guessed by calling "git config user.name"
731746 , " Foobar" -- author name
747+ , " git email" -- email guessed by calling "git config user.email"
732748 ,
" [email protected] " -- maintainer email733749 , " qux.com" -- package homepage
734750 , " Qux's package" -- package synopsis
@@ -834,10 +850,14 @@ interactiveTests srcDb = testGroup "Check top level getter functions"
834850 , testSimplePrompt " 2" synopsisPrompt
835851 " Resistance is futile, you will be assimilated" [" Resistance is futile, you will be assimilated" ]
836852 ]
837- , testSimplePrompt " Check authorPrompt output" authorPrompt
838- " Foobar" [" Foobar" ]
839- , testSimplePrompt " Check emailPrompt output" emailPrompt
840- 853+ , testSimplePrompt " Check authorPrompt output (name supplied by the user)" authorPrompt
854+ " Foobar" [" git username" , " Foobar" ]
855+ , testSimplePrompt " Check authorPrompt output (name guessed from git config)" authorPrompt
856+ " git username" [" git username" , " " ]
857+ , testSimplePrompt " Check emailPrompt output (email supplied by the user)" emailPrompt
858+ 859+ , testSimplePrompt " Check emailPrompt output (email guessed from git config)" emailPrompt
860+ " git@email" [" git@email" , " " ]
841861 , testSimplePrompt " Check homepagePrompt output" homepagePrompt
842862 " qux.com" [" qux.com" ]
843863 , testSimplePrompt " Check testDirsPrompt output" testDirsPrompt
0 commit comments