File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ fn finds_local_author_git() {
287
287
}
288
288
289
289
#[ cargo_test]
290
- fn finds_git_email ( ) {
290
+ fn finds_git_author ( ) {
291
291
cargo_process ( "new foo" )
292
292
. env ( "GIT_AUTHOR_NAME" , "foo" )
293
293
. env ( "GIT_AUTHOR_EMAIL" , "gitfoo" )
@@ -303,11 +303,12 @@ fn finds_git_email() {
303
303
}
304
304
305
305
#[ cargo_test]
306
- fn finds_git_author ( ) {
306
+ fn finds_git_committer ( ) {
307
307
create_empty_gitconfig ( ) ;
308
308
cargo_process ( "new foo" )
309
309
. env_remove ( "USER" )
310
- . env ( "GIT_COMMITTER_NAME" , "gitfoo" )
310
+ . env ( "GIT_COMMITTER_NAME" , "foo" )
311
+ . env ( "GIT_COMMITTER_EMAIL" , "gitfoo" )
311
312
. run ( ) ;
312
313
313
314
let toml = paths:: root ( ) . join ( "foo/Cargo.toml" ) ;
@@ -316,7 +317,7 @@ fn finds_git_author() {
316
317
. unwrap ( )
317
318
. read_to_string ( & mut contents)
318
319
. unwrap ( ) ;
319
- assert ! ( contents. contains( r#"authors = ["gitfoo"]"# ) ) ;
320
+ assert ! ( contents. contains( r#"authors = ["foo < gitfoo> "]"# ) ) ;
320
321
}
321
322
322
323
#[ cargo_test]
You can’t perform that action at this time.
0 commit comments